8000 py39 compatibility in typing.py · matplotlib/matplotlib@83b71d0 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 83b71d0

Browse files
ksundenQuLogic
andauthored
py39 compatibility in typing.py
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 41c530e commit 83b71d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838

3939
MarkerType = Union[str, path.Path, MarkerStyle]
4040
FillStyleType = Literal["full", "left", "right", "bottom", "top", "none"]
41-
JoinStyleType = JoinStyle | Literal["miter", "round", "bevel"]
42-
CapStyleType = CapStyle | Literal["butt", "projecting", "round"]
41+
JoinStyleType = Union[JoinStyle, Literal["miter", "round", "bevel"]]
42+
CapStyleType = Union[CapStyle, Literal["butt", "projecting", "round"]]
4343

4444
RcStyleType = Union[
4545
str, dict[str, Any], pathlib.Path, list[Union[str, pathlib.Path, dict[str, Any]]]

0 commit comments

Comments
 (0)
0