Skip to content

Commit 9fb86c8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1ddd09d commit 9fb86c8

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

mypy/exprtotype.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,7 @@ def expr_to_unanalyzed_type(
122122
else:
123123
base_fullname = expr.base.fullname
124124

125-
if (
126-
base_fullname is not None
127-
and base_fullname in ANNOTATED_TYPE_NAMES
128-
and args
129-
):
125+
if base_fullname is not None and base_fullname in ANNOTATED_TYPE_NAMES and args:
130126
# TODO: this is not the optimal solution as we are basically getting rid
131127
# of the Annotation definition and only returning the type information,
132128
# losing all the annotations.

0 commit comments

Comments
 (0)