Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
egparedes committed Jan 19, 2024
1 parent af92ac1 commit 10ebae1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gt4py/eve/extended_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,9 @@ def get_partial_type_hints(
hints[name] = resolved_hints[name]
except NameError as error:
if isinstance(hint, str):
# This conversion could be probably skipped after the fix applied in bpo-41370.
# Check: https://github.com/python/cpython/commit/b465b606049f6f7dd0711cb031fdaa251818741a#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887R344
# This conversion could be probably skipped in Python versions containing
# the fix applied in bpo-41370. Check:
# https://github.com/python/cpython/commit/b465b606049f6f7dd0711cb031fdaa251818741a#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887R344
hints[name] = ForwardRef(hint)
elif isinstance(hint, (ForwardRef, _typing.ForwardRef)):
hints[name] = hint
Expand Down

0 comments on commit 10ebae1

Please sign in to comment.