Skip to content

Commit 1ae7eca

Browse files
author
Kacper Szmigiel
committed
use of cast instead of type ignore
1 parent 725377d commit 1ae7eca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy_django_plugin/lib/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def copy_method_to_another_class(
115115
self_type=self_type)
116116
return
117117

118-
method_type: CallableType = method_node.type # type: ignore
118+
method_type = cast(CallableType, method_node.type)
119119
if not isinstance(method_type, CallableType) and not self.defer_till_next_iteration(
120120
reason='method_node.type is not CallableType'):
121121
raise new_helpers.TypeInfoNotFound(method_node.fullname)

0 commit comments

Comments
 (0)