Skip to content

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

Closed
airstandley wants to merge 5 commits into
python-poetry:masterfrom
airstandley:airs/4398/fix-constraint-and-pep-660-hook-typo
Closed

airstandley wants to merge 5 commits into
python-poetry:masterfrom
airstandley:airs/4398/fix-constraint-and-pep-660-hook-typo

Conversation

@airstandley

@airstandley airstandley commented Aug 18, 2021 •

Copy link
Copy Markdown

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
Copy Markdown
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