增加环绕侦察场景适配
This commit is contained in:
@@ -316,7 +316,7 @@ def _build_strict_cls_from_typed_dict(schema: type[TypedDictType]) -> Type:
|
||||
base, *meta = get_args(value)
|
||||
if not _is_required_or_notrequired(base):
|
||||
base = NotRequired[base]
|
||||
type_hints[key] = Annotated[tuple([base] + list(meta))]
|
||||
type_hints[key] = Annotated[tuple([base] + list(meta))] # type: ignore
|
||||
elif not _is_required_or_notrequired(value):
|
||||
type_hints[key] = NotRequired[value]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user