Skip to content

Commit

Permalink
fix: replace typing pipe operator with union
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Dec 9, 2023
1 parent c5a9906 commit 9a098a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bugmon/bug.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ def central_version(self) -> int:
return self._central_version

@property
def commands(self) -> Dict[str, str | None]:
def commands(self) -> Dict[str, Union[str, None]]:
"""Attempt to extract commands from whiteboard"""
commands: dict[str, str | None] = {}
commands: dict[str, Union[str, None]] = {}
if self._bug["whiteboard"]:
match = re.search(r"(?<=\[bugmon:)[^]]+", self._bug["whiteboard"])
if match is not None:
Expand Down

0 comments on commit 9a098a6

Please sign in to comment.