We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 725377d commit 1ae7ecaCopy full SHA for 1ae7eca
mypy_django_plugin/lib/helpers.py
@@ -115,7 +115,7 @@ def copy_method_to_another_class(
115
self_type=self_type)
116
return
117
118
- method_type: CallableType = method_node.type # type: ignore
+ method_type = cast(CallableType, method_node.type)
119
if not isinstance(method_type, CallableType) and not self.defer_till_next_iteration(
120
reason='method_node.type is not CallableType'):
121
raise new_helpers.TypeInfoNotFound(method_node.fullname)
0 commit comments