typing: Improve FixtureDefinition and FixtureDef#12999
Closed
nicoddemus wants to merge 39 commits intopytest-dev:mainfrom
Closed
typing: Improve FixtureDefinition and FixtureDef#12999nicoddemus wants to merge 39 commits intopytest-dev:mainfrom
nicoddemus wants to merge 39 commits intopytest-dev:mainfrom
Conversation
This is an internal class users don't need to know about it.
for more information, see https://pre-commit.ci
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
for more information, see https://pre-commit.ci
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Tusenka
approved these changes
Dec 1, 2024
Member
|
@nicoddemus can you open a pr against the branch @Glyphack has from your branch and link it, so the change can be seen in relation to his pr |
Member
Author
|
@RonnyPfannschmidt this is not really ready to review or merge, I only wanted to open the PR to make sure I did not lose my local commits, hehehe. |
Tusenka
reviewed
Dec 4, 2024
| def get_scope_package( | ||
| node: nodes.Item, | ||
| fixturedef: FixtureDef[object], | ||
| fixturedef: FixtureDef[Any, object], |
Member
There was a problem hiding this comment.
It's for filling the new generic parameter for the arguments
Tusenka
reviewed
Dec 4, 2024
|
|
||
| if getattr(function, "_pytestfixturefunction", False): | ||
| if isinstance(function, FixtureFunctionDefinition): | ||
| raise ValueError( |
There was a problem hiding this comment.
in which cases this error could be raised?
Member
Author
|
Superseded by #13036. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow up to #12473, built on top of it, not ready to merge.