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

Fill remaining missing hints & disallow partial hints #480

Merged
merged 6 commits into from
Oct 5, 2023

Conversation

intgr
Copy link
Contributor

@intgr intgr commented Oct 4, 2023

Disallow untyped/incomplete function definitions (disallow_untyped_defs = true, disallow_incomplete_defs = true)

But using _typeshed.Incomplete instead of Any as the placeholder type.

Related issues

@intgr intgr force-pushed the disallow-untyped-incomplete-defs branch from e4087ea to 766f8d1 Compare October 5, 2023 07:22
@intgr intgr marked this pull request as ready for review October 5, 2023 07:22
Comment on lines +30 to +32
[mypy-yaml.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think these are necessary due to the way pytest-mypy-plugins works.

Mypy ordinarily ignores errors from site-packages imports, but they aren't ignored in tests.

Copy link
Member

Choose a reason for hiding this comment

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

This can be a new bug / feature request in pytest-mypy-plugins. Users should not see this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thanks! I skimmed through, this is not a detailed review :)
We can fix any annotation later if needed.

@intgr intgr merged commit 326bcc8 into typeddjango:master Oct 5, 2023
8 checks passed
@intgr intgr deleted the disallow-untyped-incomplete-defs branch October 5, 2023 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants