Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sphinx/util/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ def isattributedescriptor(obj: Any) -> bool:
if isinstance(unwrapped, _DESCRIPTOR_LIKE):
# attribute must not be a method descriptor
return False
# attribute must not be an instancemethod (C-API)
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'}
return False


Expand Down
Loading