Skip to content

Commit

Permalink
Pipe union was introduced in 3.10, using typing.Union instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandera committed Jun 2, 2023
1 parent 0891405 commit c053034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generalimport/import_catcher.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dataclasses
from logging import getLogger
from typing import Optional
from typing import Optional, Union

from generalimport.generalimport_bottom import _get_previous_frame_filename, _get_top_name, _get_scope_from_filename

Expand Down Expand Up @@ -64,5 +64,5 @@ class ErrorPars:
trigger: Optional[str]
caller: str
catcher: Optional[ImportCatcher]
args: list | tuple
args: Union[list, tuple]
kwargs: dict

0 comments on commit c053034

Please sign in to comment.