🚨 auto fix by pre-commit hooks

This commit is contained in:
pre-commit-ci[bot]
2025-10-08 09:30:51 +00:00
parent 815267c4fc
commit 419190f23f

View File

@@ -89,7 +89,7 @@ def origin_is_annotated(origin: t.Optional[type[t.Any]]) -> bool:
return origin is t_ext.Annotated return origin is t_ext.Annotated
NONE_TYPES = {None, type(None), t.Literal[None], t_ext.Literal[None]} NONE_TYPES = {None, type(None), None, None}
if sys.version_info >= (3, 10): if sys.version_info >= (3, 10):
NONE_TYPES.add(types.NoneType) NONE_TYPES.add(types.NoneType)