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

Skip to content

Commit 6b6115d

Browse files
committed
Fix stubtest with latest mypy
1 parent 021ffb3 commit 6b6115d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

ci/mypy-stubtest-allowlist.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ matplotlib\.ticker\.LogitLocator\.nonsingular
2828

2929
# Stdlib/Enum considered inconsistent (no fault of ours, I don't think)
3030
matplotlib\.backend_bases\._Mode\.__new__
31-
matplotlib\.units\.Number\.__hash__
3231

3332
# 3.6 Pending deprecations
3433
matplotlib\.figure\.Figure\.set_constrained_layout

lib/matplotlib/ft2font.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class FT2Font(Buffer):
194194
_kerning_factor: int = ...
195195
) -> None: ...
196196
if sys.version_info[:2] >= (3, 12):
197-
def __buffer__(self, flags: int) -> memoryview: ...
197+
def __buffer__(self, /, flags: int) -> memoryview: ...
198198
def _get_fontmap(self, string: str) -> dict[str, FT2Font]: ...
199199
def clear(self) -> None: ...
200200
def draw_glyph_to_bitmap(
@@ -286,7 +286,7 @@ class FT2Image(Buffer):
286286
def __init__(self, width: int, height: int) -> None: ...
287287
def draw_rect_filled(self, x0: int, y0: int, x1: int, y1: int) -> None: ...
288288
if sys.version_info[:2] >= (3, 12):
289-
def __buffer__(self, flags: int) -> memoryview: ...
289+
def __buffer__(self, /, flags: int) -> memoryview: ...
290290

291291
@final
292292
class Glyph:

0 commit comments

Comments
 (0)