diff --git a/.doctrees/environment.pickle b/.doctrees/environment.pickle index a866a57b..797b9d21 100644 Binary files a/.doctrees/environment.pickle and b/.doctrees/environment.pickle differ diff --git a/_modules/tyro/_resolver/index.html b/_modules/tyro/_resolver/index.html index 4ed8c19a..6fe63228 100644 --- a/_modules/tyro/_resolver/index.html +++ b/_modules/tyro/_resolver/index.html @@ -276,6 +276,7 @@
Sequence,
Set,
Tuple,
+ Type,
TypeVar,
Union,
cast,
@@ -702,13 +703,14 @@ Source code for tyro._resolver
dict: Dict,
set: Set,
frozenset: FrozenSet,
+ type: Type,
}
if hasattr(types, "UnionType"): # type: ignore
# PEP 604. Requires Python 3.10.
shim_table[types.UnionType] = Union # type: ignore
for new, old in shim_table.items():
- if isinstance(typ, new) or origin is new: # type: ignore
+ if origin is new: # type: ignore
typ = old.__getitem__(args) # type: ignore
new_args = tuple(apply_type_from_typevar(x, type_from_typevar) for x in args)