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

Skip to content

Commit f93b809

Browse files
committed
Ignoring the index error code in mypy
1 parent 34b4c31 commit f93b809

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/_mathtext_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,12 +1726,12 @@
17261726
# or when the tuple has a reserved hex value for the font.
17271727
# Otherwise it returns the int value of the Unicode name
17281728

1729-
stix_virtual_fonts[keys][i] = tuple(
1729+
stix_virtual_fonts[keys][i] = tuple( # type: ignore
17301730
[x if idx == 2 or not isinstance(x, str)
17311731
else int(ord(x)) for idx, x in
1732-
enumerate(stix_virtual_fonts[keys][i])])
1732+
enumerate(stix_virtual_fonts[keys][i])]) # type: ignore
17331733
else:
1734-
for m, mv in enumerate(stix_virtual_fonts[keys][k]):
1734+
for m, mv in enumerate(stix_virtual_fonts[keys][k]): # type: ignore
17351735
stix_virtual_fonts[keys][k][m] = tuple(
17361736
[x if idx == 2 or not isinstance(x, str)
17371737
else int(ord(x)) for idx, x in

0 commit comments

Comments
 (0)