🚨 re-enable noqa PYI061

This commit is contained in:
StarHeartHunt
2025-10-08 17:40:15 +08:00
parent 419190f23f
commit f76546a232
4 changed files with 32 additions and 31 deletions

View File

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