Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 17, 2022
1 parent dfe6fad commit c5fcf7a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions magicgui/_type_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,7 @@ def resolve_annotation(

if isinstance(annotation, str):
if (3, 10) > sys.version_info >= (3, 9, 8) or sys.version_info >= (3, 10, 1):
annotation = ForwardRef(
annotation, is_argument=False, is_class=True
)
annotation = ForwardRef(annotation, is_argument=False, is_class=True)
else:
annotation = ForwardRef(annotation, is_argument=False)

Expand Down

0 comments on commit c5fcf7a

Please sign in to comment.