From eaf12affa49b96421543665edc73942c8f06febe Mon Sep 17 00:00:00 2001 From: brentyi Date: Tue, 29 Oct 2024 19:51:47 -0700 Subject: [PATCH] mypy --- src/tyro/_fields.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tyro/_fields.py b/src/tyro/_fields.py index 60cd7d48..e4f2789e 100644 --- a/src/tyro/_fields.py +++ b/src/tyro/_fields.py @@ -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