Skip to content

Allow __init__ and __new__ to return NoReturn #13480

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

Merged
merged 6 commits into from
Aug 23, 2022
Merged

Allow __init__ and __new__ to return NoReturn #13480

merged 6 commits into from
Aug 23, 2022

Conversation

iyanging
Copy link
Contributor

Description

Here is a alternative PR of #11216, which merged master. All respects go to @BvB93.

This PR is useful when the original author has no spare time to do merge.

Also, I'm happy to make the PR directly to the original fork.

@BvB93 @hauntsaninja

@github-actions
Copy link
Contributor

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

pylint (https://github.com/pycqa/pylint)
+ pylint/__init__.py:60: error: Unused "type: ignore" comment
+ pylint/pyreverse/main.py:214: error: Unused "type: ignore" comment

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thank you and thank you BvB93!

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.

3 participants