Skip to content

Commit b9502f9

Browse files
authored
fix: use removesuffix instead of rstrip (#132)
1 parent 08232f3 commit b9502f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx_autosummary_accessors/documenters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,4 @@ class AccessorCallableDocumenter(AccessorLevelDocumenter, MethodDocumenter):
108108
priority = 0.5
109109

110110
def format_name(self):
111-
return MethodDocumenter.format_name(self).rstrip(".__call__")
111+
return MethodDocumenter.format_name(self).removesuffix(".__call__")

0 commit comments

Comments
 (0)