Skip to content

Commit f539377

Browse files
committed
Remove py3.9 unsupported type hint
1 parent 87f7b7a commit f539377

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/elapi/plugins/export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __call__(self, data: Any, verbose: bool = False) -> None:
5858

5959
class ExportValidator(PathValidator):
6060
def __init__(
61-
self, /, export_path: Union[Iterable[...], Union[None, str, ProperPath, Path]]
61+
self, /, export_path: Union[Iterable, Union[None, str, ProperPath, Path]]
6262
):
6363
self.export_path = export_path
6464
super().__init__(export_path)

src/elapi/validators/path.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from random import choices
44
from typing import Union, Iterable
55

6-
from ..path import ProperPath
76
from .base import Validator, ValidationError
7+
from ..path import ProperPath
88

99
COMMON_PATH_ERRORS: tuple = (
1010
FileNotFoundError,
@@ -19,7 +19,7 @@
1919
class PathValidator(Validator):
2020
def __init__(
2121
self,
22-
path: Union[Iterable[...], Union[None, str, ProperPath, Path]],
22+
path: Union[Iterable, Union[None, str, ProperPath, Path]],
2323
**kwargs,
2424
):
2525
from ..loggers import Logger

0 commit comments

Comments
 (0)