Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4883c9f

Browse filesBrowse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #29088: DOC: Format aliases in kwargs tables
1 parent e23e370 commit 4883c9f
Copy full SHA for 4883c9f

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎lib/matplotlib/artist.py

Copy file name to clipboardExpand all lines: lib/matplotlib/artist.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,8 @@ def aliased_name_rest(self, s, target):
15861586
if target in self._NOT_LINKABLE:
15871587
return f'``{s}``'
15881588

1589-
aliases = ''.join(' or %s' % x for x in sorted(self.aliasd.get(s, [])))
1589+
aliases = ''.join(
1590+
f' or :meth:`{a} <{target}>`' for a in sorted(self.aliasd.get(s, [])))
15901591
return f':meth:`{s} <{target}>`{aliases}'
15911592

15921593
def pprint_setters(self, prop=None, leadingspace=2):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.