-
-
Notifications
You must be signed in to change notification settings - Fork 127
Update to mypy 0.991 for compatible-mypy & CI #280
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
Conversation
show_traceback = True | ||
allow_redefinition = True | ||
incremental = True | ||
show_error_codes = False | ||
disable_error_code = empty-body |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warn_no_return
is no longer necessary now that we disable empty-body
.
|
||
class BasePermission(metaclass=BasePermissionMetaclass): # type: ignore[misc] | ||
def has_permission(self, request: Request, view: APIView) -> bool: ... | ||
def has_object_permission(self, request: Request, view: APIView, obj: Any) -> bool: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I kept _SupportsHasPermission
here, it causes "Metaclass conflict" errors.
I don't understand metaclasses well enough to say whether that's a bug in mypy or a genuine issue.
But duplicating these method signatures here fixes it.
typecheck-tests is not running correctly any more. All ignores show up in "UNUSED IGNORES" now. EDIT: May be a mypy bug, reported upstream: python/mypy#14042 |
558a62c
to
21d86ad
Compare
f2a0737
to
832a704
Compare
832a704
to
e673bac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
No description provided.