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 e734457 commit b3d1654Copy full SHA for b3d1654
pylint/extensions/private_import.py
@@ -199,7 +199,7 @@ def _populate_type_annotations_annotation(
199
case nodes.Name() if node.name not in all_used_type_annotations:
200
all_used_type_annotations[node.name] = True
201
return node.name # type: ignore[no-any-return]
202
- case nodes.Subscript():
+ case nodes.Subscript(): # e.g. Optional[List[str]]
203
# slice is the next nested type
204
self._populate_type_annotations_annotation(
205
node.slice, all_used_type_annotations
0 commit comments