8000 Add __future__ imports to tests where inline type hints are included · matplotlib/matplotlib@2a5c60c · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a5c60c

Browse files
committed
Add __future__ imports to tests where inline type hints are included
1 parent 24f03e8 commit 2a5c60c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/matplotlib/tests/test_cbook.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import itertools
24
import pickle
35

lib/matplotlib/tests/test_mathtext.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import io
24
from pathlib import Path
35
import platform
@@ -147,7 +149,7 @@
147149
# stub should be of the form (None, N) where N is the number of strings that
148150
# used to be tested
149151
# Add new tests at the end.
150-
font_test_specs: list[tuple[None|list[str], Any]] = [
152+
font_test_specs: list[tuple[None | list[str], Any]] = [
151153
([], all),
152154
(['mathrm'], all),
153155
(['mathbf'], all),
@@ -171,7 +173,7 @@
171173
(['mathbf', 'mathsf'], [digits, uppercase, lowercase])
172174
]
173175

174-
font_tests: list[None|str] = []
176+
font_tests: list[None | str] = []
175177
for fonts, chars in font_test_specs:
176178
if fonts is None:
177179
font_tests.extend([None] * chars) # type: ignore

0 commit comments

Comments
 (0)
0