We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isattributedescriptor()
1 parent 754864d commit 719237fCopy full SHA for 719237f
sphinx/util/inspect.py
@@ -374,8 +374,8 @@ def isattributedescriptor(obj: Any) -> bool:
374
if isinstance(unwrapped, _DESCRIPTOR_LIKE):
375
# attribute must not be a method descriptor
376
return False
377
- # attribute must not be an instancemethod (C-API)
378
- return type(unwrapped).__name__ != 'instancemethod'
+ # attribute must not be an instancemethod (C-API) nor nb_method (specific for nanobind)
+ return type(unwrapped).__name__ not in {'instancemethod', 'nb_method'}
379
380
381
0 commit comments