Skip to content

Commit 42aa511

Browse files
committed
Bump pyright to 1.1.406
1 parent f578eed commit 42aa511

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ translations = [
131131
types = [
132132
"mypy==1.18.2",
133133
"pyrefly",
134-
"pyright==1.1.400",
134+
"pyright==1.1.406",
135135
"ty",
136136
{ include-group = "type-stubs" },
137137
]

sphinx/util/inspect.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class methods and static methods.
103103
if ispartial(obj):
104104
obj = obj.func
105105
elif inspect.isroutine(obj) and hasattr(obj, '__wrapped__'):
106-
obj = obj.__wrapped__
106+
obj = obj.__wrapped__ # pyright: ignore[reportFunctionMemberAccess]
107107
elif isclassmethod(obj) or isstaticmethod(obj):
108108
obj = obj.__func__
109109
else:
@@ -114,7 +114,7 @@ class methods and static methods.
114114
if ispartial(obj):
115115
obj = obj.func
116116
elif inspect.isroutine(obj) and hasattr(obj, '__wrapped__'):
117-
obj = obj.__wrapped__
117+
obj = obj.__wrapped__ # pyright: ignore[reportFunctionMemberAccess]
118118
elif isclassmethod(obj) or isstaticmethod(obj):
119119
obj = obj.__func__
120120
else:
@@ -385,7 +385,7 @@ def is_singledispatch_function(obj: Any) -> bool:
385385
inspect.isfunction(obj)
386386
and hasattr(obj, 'dispatch')
387387
and hasattr(obj, 'register')
388-
and obj.dispatch.__module__ == 'functools'
388+
and obj.dispatch.__module__ == 'functools' # pyright: ignore[reportFunctionMemberAccess]
389389
)
390390

391391

0 commit comments

Comments
 (0)