Skip to content

Commit

Permalink
Fix type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankSpruce committed Jul 15, 2024
1 parent 0f2b840 commit 7a454e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gersemi/warnings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass
from typing import Iterable, Tuple
from typing import Iterable, Tuple, Union


Position = Tuple[int, int]
Expand All @@ -25,5 +25,5 @@ def get_message(self, filepath: str) -> str:
return f"{filepath} would be reformatted"


FormatterWarning = UnknownCommandWarning | WrongFormattingWarning
FormatterWarning = Union[UnknownCommandWarning, WrongFormattingWarning]
FormatterWarnings = Iterable[FormatterWarning]

0 comments on commit 7a454e7

Please sign in to comment.