Skip to content

Commit ec2ccbe

Browse files
committed
Fix mypy stubtests
1 parent 58d4361 commit ec2ccbe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/axes/_base.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from operator import attrgetter
88
import re
99
import types
10-
from typing import Callable, Union
10+
from typing import Callable, Union, TypeAlias
1111

1212
import numpy as np
1313

@@ -34,7 +34,7 @@
3434
_log = logging.getLogger(__name__)
3535

3636

37-
_coords_type_base = Union[
37+
coords_type_base: TypeAlias = Union[
3838
str,
3939
martist.Artist,
4040
mtransforms.Transform,
@@ -43,9 +43,9 @@
4343
Union[mtransforms.Bbox, mtransforms.Transform]
4444
]
4545
]
46-
_coords_type = Union[
47-
_coords_type_base,
48-
tuple[_coords_type_base, _coords_type_base]
46+
coords_type: TypeAlias = Union[
47+
coords_type_base,
48+
tuple[coords_type_base, coords_type_base]
4949
]
5050

5151

0 commit comments

Comments
 (0)