Skip to content

Commit

Permalink
MNT: Add manual backport of relevant portion of matplotlib#26198
Browse files Browse the repository at this point in the history
  • Loading branch information
ksunden committed Aug 2, 2023
1 parent c518378 commit f51595f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/matplotlib/_mathtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -1802,8 +1802,11 @@ def __init__(self):
def set_names_and_parse_actions():
for key, val in vars(p).items():
if not key.startswith('_'):
# Set names on everything -- very useful for debugging
val.setName(key)
# Set names on (almost) everything -- very useful for debugging
# token, placeable, and auto_delim are forward references which
# are left without names to ensure useful error messages
if key not in ("token", "placeable", "auto_delim"):
val.setName(key)
# Set actions
if hasattr(self, key):
val.setParseAction(getattr(self, key))
Expand Down

0 comments on commit f51595f

Please sign in to comment.