Skip to content

Commit

Permalink
fix: unknown socket path type
Browse files Browse the repository at this point in the history
  • Loading branch information
cole committed Jul 31, 2024
1 parent 97b35f9 commit 9d7bb35
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/aiosmtplib/typing.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import enum
import os
import sys
from typing import Union


__all__ = ("Default", "SMTPStatus", "SocketPathType", "_default")


SocketPathType = Union[str, bytes, os.PathLike]
# 3.9 changed the os.PathLike type
if sys.version_info >= (3, 9):
SocketPathType = Union[str, bytes, os.PathLike[str]]
else:
SocketPathType = Union[str, bytes, os.PathLike]


class Default(enum.Enum):
Expand Down

0 comments on commit 9d7bb35

Please sign in to comment.