Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e0d5ab8

Browse filesBrowse files
committed
Add __future__ imports to tests where inline type hints are included
1 parent 4fe4fab commit e0d5ab8
Copy full SHA for e0d5ab8

File tree

Expand file treeCollapse file tree

2 files changed

+6
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-2
lines changed

‎lib/matplotlib/tests/test_cbook.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_cbook.py
+2Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_mathtext.py
+4-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.