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

Remove pluggy stubs #11351

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Remove pluggy stubs #11351

merged 1 commit into from
Jan 31, 2024

Conversation

sobolevn
Copy link
Member

It is the last day of Jan, tomorrow is the date!

Closes #10621

Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/config/__init__.py:42: error: Module "pluggy" has no attribute "HookimplOpts"  [attr-defined]
- src/_pytest/config/__init__.py:44: error: Module "pluggy" has no attribute "HookspecOpts"  [attr-defined]
- src/_pytest/config/__init__.py:751: error: "PytestPluginManager" has no attribute "unblock"  [attr-defined]
- src/_pytest/config/__init__.py:753: error: "PytestPluginManager" has no attribute "unblock"  [attr-defined]
+ src/_pytest/config/__init__.py:475: error: Unused "type: ignore" comment  [unused-ignore]
+ src/_pytest/config/__init__.py:507: error: Returning Any from function declared to return "str | None"  [no-any-return]
- src/_pytest/config/__init__.py:1073: error: "_HookCaller" has no attribute "_call_history"; maybe "call_historic"?  [attr-defined]
- src/_pytest/nodes.py:201: error: Name "pluggy.HookRelay" is not defined  [name-defined]
- src/_pytest/main.py:450: error: Name "pluggy.HookCaller" is not defined  [name-defined]
- src/_pytest/main.py:674: error: Name "pluggy.HookRelay" is not defined  [name-defined]
- src/_pytest/main.py:682: error: Name "pluggy.HookRelay" is not defined  [name-defined]
+ src/_pytest/pytester.py:743: error: Unused "type: ignore" comment  [unused-ignore]

@sobolevn
Copy link
Member Author

Is it ok that pytest's outpus has changed?

@AlexWaygood
Copy link
Member

AlexWaygood commented Jan 31, 2024

Is it ok that pytest's outpus has changed?

Yes, but ideally somebody should make a PR with mypy_primer so it starts installing pluggy when it runs mypy on pytest (not a blocker for this PR though)

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

LGTM, we can merge tomorrow ;)

AlexWaygood added a commit to AlexWaygood/mypy_primer that referenced this pull request Jan 31, 2024
hauntsaninja pushed a commit to hauntsaninja/mypy_primer that referenced this pull request Jan 31, 2024
@hauntsaninja hauntsaninja merged commit 547cbc7 into main Jan 31, 2024
45 checks passed
@hauntsaninja hauntsaninja deleted the issue-10621 branch January 31, 2024 21:30
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.

Remove pluggy stubs (not until February 2024)
3 participants