mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 16:32:10 -05:00
Bump pyright to 1.1.406
This commit is contained in:
1 parent
f578eedb10
commit
42aa5114ba
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -131,7 +131,7 @@ translations = [
|
||||
types = [
|
||||
"mypy==1.18.2",
|
||||
"pyrefly",
|
||||
"pyright==1.1.400",
|
||||
"pyright==1.1.406",
|
||||
"ty",
|
||||
{ include-group = "type-stubs" },
|
||||
]
|
||||
|
||||
@@ -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]
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user