Bump pyright to 1.1.406

This commit is contained in:
Adam Turner committed 2025-10-05 23:52:43 +01:00
1 parent f578eedb10
commit 42aa5114ba
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -131,7 +131,7 @@ translations = [
types = [
"mypy==1.18.2",
"pyrefly",
"pyright==1.1.400",
"pyright==1.1.406",
"ty",
{ include-group = "type-stubs" },
]
+3 -3
View File
@@ -103,7 +103,7 @@ def unwrap_all(obj: Any, *, stop: Callable[[Any], bool] | None = None) -> Any:
if ispartial(obj):
obj = obj.func
elif inspect.isroutine(obj) and hasattr(obj, '__wrapped__'):
obj = obj.__wrapped__
obj = obj.__wrapped__ # pyright: ignore[reportFunctionMemberAccess]
elif isclassmethod(obj) or isstaticmethod(obj):
obj = obj.__func__
else:
@@ -114,7 +114,7 @@ def unwrap_all(obj: Any, *, stop: Callable[[Any], bool] | None = None) -> Any:
if ispartial(obj):
obj = obj.func
elif inspect.isroutine(obj) and hasattr(obj, '__wrapped__'):
obj = obj.__wrapped__
obj = obj.__wrapped__ # pyright: ignore[reportFunctionMemberAccess]
elif isclassmethod(obj) or isstaticmethod(obj):
obj = obj.__func__
else:
@@ -385,7 +385,7 @@ def is_singledispatch_function(obj: Any) -> bool:
inspect.isfunction(obj)
and hasattr(obj, 'dispatch')
and hasattr(obj, 'register')
and obj.dispatch.__module__ == 'functools'
and obj.dispatch.__module__ == 'functools' # pyright: ignore[reportFunctionMemberAccess]
)