Skip to content

Commit a8083e3

Browse files
committed
add return type hints
1 parent 83158ec commit a8083e3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,19 +785,19 @@ def _get_glyph(self, fontname: str, font_class: str,
785785
# from here on: use the Math font
786786
new_fontname = 'mathfont'
787787

788-
def _is_digit(codepoint: CharacterCodeType):
788+
def _is_digit(codepoint: CharacterCodeType) -> bool:
789789
return 0x30 <= codepoint <= 0x39
790790

791-
def _is_latin_uppercase(codepoint: CharacterCodeType):
791+
def _is_latin_uppercase(codepoint: CharacterCodeType) -> bool:
792792
return 0x41 <= codepoint <= 0x5a
793793

794-
def _is_latin_lowercase(codepoint: CharacterCodeType):
794+
def _is_latin_lowercase(codepoint: CharacterCodeType) -> bool:
795795
return 0x61 <= codepoint <= 0x7a
796796

797-
def _is_greek_uppercase(codepoint: CharacterCodeType):
797+
def _is_greek_uppercase(codepoint: CharacterCodeType) -> bool:
798798
return codepoint in greek_uppercase_domain
799799

800-
def _is_greek_lowercase(codepoint: CharacterCodeType):
800+
def _is_greek_lowercase(codepoint: CharacterCodeType) -> bool:
801801
return codepoint in greek_lowercase_domain
802802

803803
# check if character is digit, latin letter, or greek letter

0 commit comments

Comments
 (0)