Skip to content

Commit 344fdd4

Browse files
authored
use the backported | type operator
a.k.a. `typing.Union`
1 parent e98ed19 commit 344fdd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mdformat_pyproject/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import functools
44
import pathlib
55
import sys
6-
from typing import MutableMapping, Optional, Sequence
6+
from typing import MutableMapping, Optional, Sequence, Union
77

88
import markdown_it
99
import mdformat
@@ -15,7 +15,7 @@
1515
import tomli as tomllib
1616

1717

18-
_ConfigOptions = MutableMapping[str, int | str | Sequence[str]]
18+
_ConfigOptions = MutableMapping[str, Union[int, str, Sequence[str]]]
1919

2020

2121
@functools.lru_cache()

0 commit comments

Comments
 (0)