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

Skip to content

Commit 34b4c31

Browse files
committed
Update type for stix font table
1 parent 195429d commit 34b4c31

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/matplotlib/_mathtext_data.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,8 +1113,10 @@
11131113
# Each element is a 4-tuple of the form:
11141114
# src_start, src_end, dst_font, dst_start
11151115

1116-
stix_virtual_fonts: dict[str, dict[str, list[tuple[str, str, str, str | int]]] |
1117-
list[tuple[str, str, str, str | int]]] = {
1116+
stix_virtual_fonts: dict[str, dict[str, list[tuple[
1117+
(str | int), (str | int), str, (str | int)]]] |
1118+
list[tuple[
1119+
(str | int), (str | int), str, (str | int)]]] = {
11181120
'bb':
11191121
{
11201122
"rm":
@@ -1726,13 +1728,13 @@
17261728

17271729
stix_virtual_fonts[keys][i] = tuple(
17281730
[x if idx == 2 or not isinstance(x, str)
1729-
else ord(x) for idx, x in
1731+
else int(ord(x)) for idx, x in
17301732
enumerate(stix_virtual_fonts[keys][i])])
17311733
else:
17321734
for m, mv in enumerate(stix_virtual_fonts[keys][k]):
17331735
stix_virtual_fonts[keys][k][m] = tuple(
17341736
[x if idx == 2 or not isinstance(x, str)
1735-
else ord(x) for idx, x in
1737+
else int(ord(x)) for idx, x in
17361738
enumerate(stix_virtual_fonts[keys][k][m])])
17371739

17381740
# Fix some incorrect glyphs.

0 commit comments

Comments
 (0)