Skip to content

Commit

Permalink
Use typing extentions for TypeAlias
Browse files Browse the repository at this point in the history
  • Loading branch information
nhairs committed Jan 31, 2024
1 parent 08a1f20 commit 88a089b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion parsedmarc/mail/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
from functools import lru_cache
from pathlib import Path
from time import sleep
from typing import Any, TypeAlias
import sys
from typing import Any

if sys.version_info < (3, 10):
from typing_extensions import TypeAlias
else:
from typing import TypeAlias

# Installed
from azure.identity import (
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ dependencies = [
"publicsuffixlist>=0.10.0",
"requests>=2.22.0",
"tqdm>=4.31.1",
"typing-extensions;python_version<'3.10'",
"urllib3>=1.25.7",
"xmltodict>=0.12.0",
]
Expand Down

0 comments on commit 88a089b

Please sign in to comment.