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

Consistently use type-abstract error code #14619

Merged
merged 2 commits into from
Feb 7, 2023

Conversation

ilevkivskyi
Copy link
Member

Ref #4717

Although function use case is much more important, the variable assignment should use the same error code, otherwise this may cause confusion.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2023

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

ibis (https://github.com/ibis-project/ibis)
- ibis/backends/base/__init__.py:381: error: Can only assign concrete classes to a variable of type "Type[DatabaseTable]"  [misc]
+ ibis/backends/base/__init__.py:381: error: Can only assign concrete classes to a variable of type "Type[DatabaseTable]"  [type-abstract]

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

Thanks! We could later discuss turning off this error code by default, since this seems to cause false positives, right?

@JukkaL JukkaL merged commit 11c63aa into python:master Feb 7, 2023
@ilevkivskyi ilevkivskyi deleted the fix-abstract-code branch February 7, 2023 17:36
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.

2 participants