@@ -176,13 +176,13 @@ def __init__(
176176 self .parent : Module | None = parent
177177 """An optional parent for the final module object."""
178178
179- self .current : Module | Class = None
179+ self .current : Module | Class = None # ty:ignore[invalid-assignment]
180180 """The current object being visited."""
181181
182182 self .docstring_parser : DocstringStyle | Parser | None = docstring_parser
183183 """The docstring parser to use."""
184184
185- self .docstring_options : DocstringOptions = docstring_options or {}
185+ self .docstring_options : DocstringOptions = docstring_options or {} # ty:ignore[invalid-assignment]
186186 """The docstring parsing options."""
187187
188188 self .lines_collection : LinesCollection = lines_collection or LinesCollection ()
@@ -231,7 +231,7 @@ def _get_type_parameters(
231231 member = scope ,
232232 ),
233233 )
234- for type_param in node .type_params # ty:ignore[possibly-missing -attribute,unused-ignore-comment,unused-ignore-comment]
234+ for type_param in node .type_params # ty:ignore[unresolved -attribute,unused-ignore-comment,unused-ignore-comment]
235235 ]
236236 else :
237237
@@ -692,8 +692,8 @@ def handle_attribute(
692692 if existing_member .docstring and not docstring :
693693 docstring = existing_member .docstring
694694 with suppress (AttributeError ):
695- if existing_member .annotation and not annotation : # ty:ignore[possibly-missing -attribute]
696- annotation = existing_member .annotation # ty:ignore[possibly-missing -attribute]
695+ if existing_member .annotation and not annotation : # ty:ignore[unresolved -attribute]
696+ annotation = existing_member .annotation # ty:ignore[unresolved -attribute]
697697
698698 attribute = Attribute (
699699 name = name ,
@@ -741,13 +741,13 @@ def visit_augassign(self, node: ast.AugAssign) -> None:
741741 """
742742 with suppress (AttributeError ):
743743 all_augment = (
744- node .target .id == "__all__" # ty:ignore[possibly-missing -attribute]
744+ node .target .id == "__all__" # ty:ignore[unresolved -attribute]
745745 and self .current .is_module
746746 and isinstance (node .op , ast .Add )
747747 )
748748 if all_augment :
749749 # We assume `exports` is not `None` at this point.
750- self .current .exports .extend ( # ty:ignore[possibly-missing -attribute]
750+ self .current .exports .extend ( # ty:ignore[unresolved -attribute]
751751 [
752752 name if isinstance (name , str ) else ExprName (name .name , parent = name .parent )
753753 for name in safe_get__all__ (node , self .current ) # ty:ignore[invalid-argument-type]
0 commit comments