Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d15f37

Browse files
committed
fix: private validators
1 parent ce57855 commit 0d15f37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def validate_font_properties(s):
413413
return s
414414

415415

416-
def validate_mathtext_fallback_to_cm(b):
416+
def _validate_mathtext_fallback_to_cm(b):
417417
"""
418418
Temporary validate for fallback_to_cm, while deprecated
419419
@@ -430,7 +430,7 @@ def validate_mathtext_fallback_to_cm(b):
430430
return validate_bool_maybe_none(b)
431431

432432

433-
def validate_mathtext_fallback(s):
433+
def _validate_mathtext_fallback(s):
434434
_fallback_fonts = ['cm', 'stix', 'stixsans']
435435
if isinstance(s, str):
436436
s = s.lower()
@@ -1182,8 +1182,8 @@ def _convert_validator_spec(key, conv):
11821182
'mathtext.default': [
11831183
'it',
11841184
['rm', 'cal', 'it', 'tt', 'sf', 'bf', 'default', 'bb', 'frak', 'scr', 'regular']],
1185-
'mathtext.fallback_to_cm': [None, validate_mathtext_fallback_to_cm],
1186-
'mathtext.fallback': ['cm', validate_mathtext_fallback],
1185+
'mathtext.fallback_to_cm': [None, _validate_mathtext_fallback_to_cm],
1186+
'mathtext.fallback': ['cm', _validate_mathtext_fallback],
11871187

11881188
'image.aspect': ['equal', validate_aspect], # equal, auto, a number
11891189
'image.interpolation': ['antialiased', validate_string],

0 commit comments

Comments
 (0)