Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 4398: Fix constraint and pep 660 hook typo #187

Conversation

airstandley
Copy link

@airstandley airstandley commented Aug 18, 2021

Resolves: python-poetry#4398

  • Added tests for changed code.
  • Updated documentation for changed code.

Would very much appreciate an expert reviewing the new tests to see if the behaviour checked is correct. I do not have time to parse through the code base in enough detail to be certain about what the expected behaviour should be so this is my best guess.

…th_dev' parameter in the Factory.create_poetry call. Removed this parameter from the call.
I am unsure if these tests are checking the correct behvaiour as I was unable to locate any documentation or comments in the code that explain what the exactly the methods are supposed to be doing, or what the intention of EmptyContraint is so I had to take a guess based on the existing tests and implementations.
I realized that a union with an EmptyConstraint should probably return the original constraint since the EmptyConstraint adds no constraints. (Based on AnyConstraint it appears a union should be addative and not a union in the set sense)
Also forgot to install precommit hooks so ran them against the file.
@airstandley
Copy link
Author

Fixed by #188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant