diff options
| author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-01-17 18:24:39 +0100 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-01-18 00:06:00 +0100 |
| commit | 7fa6e4d5a5218468606a43e10ba86bdf335ec3d4 (patch) | |
| tree | c1f415d302f195d16458b2cf8200e68a19326392 | |
| parent | 58f9a48347c2bf69fe2ba9824613b0adedcaeb80 (diff) | |
| download | astroid-git-7fa6e4d5a5218468606a43e10ba86bdf335ec3d4.tar.gz | |
Add ignore for incorrect typing of attribute
| -rw-r--r-- | astroid/brain/brain_typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/brain/brain_typing.py b/astroid/brain/brain_typing.py index de89f1aa..4f9cfdcc 100644 --- a/astroid/brain/brain_typing.py +++ b/astroid/brain/brain_typing.py @@ -150,7 +150,7 @@ def infer_typing_attr( ) -> typing.Iterator[ClassDef]: """Infer a typing.X[...] subscript""" try: - value = next(node.value.infer()) + value = next(node.value.infer()) # type: ignore[union-attr] # value shouldn't be None for Subscript. except (InferenceError, StopIteration) as exc: raise UseInferenceDefault from exc |
