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

Fixes for typed pluggy #11353

Merged
merged 1 commit into from
Aug 26, 2023
Merged

Fixes for typed pluggy #11353

merged 1 commit into from
Aug 26, 2023

Conversation

bluetech
Copy link
Member

Since version 1.3 pluggy added typing, which requires some fixes to please mypy.

Pending release of pluggy 1.3

I intend to backport this to 7.4.x but without bumping the pluggy requirement so will be a little different.

# Collect unmarked hooks as long as they have the `pytest_' prefix.
return _get_legacy_hook_marks(
return _get_legacy_hook_marks( # type: ignore[return-value]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be improved, but the legacy hook stuff is going to be removed in pytest 8.1 so I didn't bother.

Since version 1.3 pluggy added typing, which requires some fixes to
please mypy.
@bluetech bluetech marked this pull request as ready for review August 26, 2023 19:16
@bluetech
Copy link
Member Author

Merging to fix the CI

@bluetech bluetech merged commit 00fedcc into pytest-dev:main Aug 26, 2023
23 checks passed
@bluetech bluetech deleted the pluggy-typing branch August 26, 2023 19:59
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