Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Oct 30, 2024
1 parent 7f8dae1 commit eaf12af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tyro/_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ def make(
if argconf.help is not None:
helptext = argconf.help

_, primitive_spec = _resolver.unwrap_annotated(
_, primitive_specs = _resolver.unwrap_annotated(
static_type, PrimitiveConstructorSpec
)
if len(primitive_spec) > 0:
primitive_spec = primitive_spec[0]
if len(primitive_specs) > 0:
primitive_spec = primitive_specs[0]
else:
primitive_spec = None

Expand Down

0 comments on commit eaf12af

Please sign in to comment.