Skip to content

Commit

Permalink
use the backported | type operator
Browse files Browse the repository at this point in the history
a.k.a. `typing.Union`
  • Loading branch information
jorenham authored Dec 6, 2024
1 parent e98ed19 commit 344fdd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdformat_pyproject/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import functools
import pathlib
import sys
from typing import MutableMapping, Optional, Sequence
from typing import MutableMapping, Optional, Sequence, Union

import markdown_it
import mdformat
Expand All @@ -15,7 +15,7 @@
import tomli as tomllib


_ConfigOptions = MutableMapping[str, int | str | Sequence[str]]
_ConfigOptions = MutableMapping[str, Union[int, str, Sequence[str]]]


@functools.lru_cache()
Expand Down

0 comments on commit 344fdd4

Please sign in to comment.