From 95272fb271a36d32b1c8f0cac6035b59ba58d1f4 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Wed, 3 Mar 2021 12:43:45 -0500 Subject: [PATCH] Fix custom Path types in mypy cf. --- src/outgoing/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/outgoing/config.py b/src/outgoing/config.py index 9c8dc73..5a369aa 100644 --- a/src/outgoing/config.py +++ b/src/outgoing/config.py @@ -7,9 +7,9 @@ if TYPE_CHECKING: from pydantic.typing import CallableGenerator - Path = Union[pathlib.Path, str] - FilePath = Union[pathlib.Path, str] - DirectoryPath = Union[pathlib.Path, str] + Path = pathlib.Path + FilePath = pathlib.Path + DirectoryPath = pathlib.Path else: