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

Skip to content

Commit 50b2d87

Browse files
committed
Add type ignore for stix in _mathtext
1 parent 7f0a392 commit 50b2d87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -812,15 +812,15 @@ def _map_virtual_font(self, fontname: str, font_class: str,
812812
while lo < hi:
813813
mid = (lo+hi)//2
814814
range = mapping[mid]
815-
if uniindex < range[0]:
815+
if uniindex < range[0]: # type: ignore
816816
hi = mid
817-
elif uniindex <= range[1]:
817+
elif uniindex <= range[1]: # type: ignore
818818
break
819819
else:
820820
lo = mid + 1
821821

822-
if range[0] <= uniindex <= range[1]:
823-
uniindex = uniindex - range[0] + range[3]
822+
if range[0] <= uniindex <= range[1]: # type: ignore
823+
uniindex = uniindex - range[0] + range[3] # type: ignore
824824
fontname = range[2]
825825
elif not doing_sans_conversion:
826826
# This will generate a dummy character

0 commit comments

Comments
 (0)