Skip to content

Commit 7f0a392

Browse files
committed
Ignoring the index error code in mypy
1 parent cc8d208 commit 7f0a392

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/matplotlib/_mathtext_data.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,16 +1726,16 @@
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]):
1735-
stix_virtual_fonts[keys][k][m] = tuple(
1734+
for m, mv in enumerate(stix_virtual_fonts[keys][k]): # type: ignore
1735+
stix_virtual_fonts[keys][k][m] = tuple( # type: ignore
17361736
[x if idx == 2 or not isinstance(x, str)
17371737
else int(ord(x)) for idx, x in
1738-
enumerate(stix_virtual_fonts[keys][k][m])])
1738+
enumerate(stix_virtual_fonts[keys][k][m])]) # type: ignore
17391739

17401740
# Fix some incorrect glyphs.
17411741
stix_glyph_fixes = {

0 commit comments

Comments
 (0)