Skip to content

Commit

Permalink
fix build_check_call for py3.8 (#22506)
Browse files Browse the repository at this point in the history
## How I Tested These Changes

existing tests
  • Loading branch information
alangenfeld authored Jun 12, 2024
1 parent bf9bc34 commit b5a6878
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python_modules/dagster/dagster/_check/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,8 @@ def build_check_call_str(
else:
return name # no-op
else:
if origin is Annotated and args:
# 3.9+: origin is Annotated, 3.8: origin == args[0]
if (origin is Annotated and args) or (len(args) == 1 and args[0] == origin):
return build_check_call_str(args[0], f"{name}", eval_ctx)

pair_left, pair_right = _container_pair_args(args, eval_ctx)
Expand Down

0 comments on commit b5a6878

Please sign in to comment.