Skip to content

Commit

Permalink
Remove typing_extensions (was Py 3.7 compat)
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Jan 23, 2024
1 parent 7992ca2 commit ef08c33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ dependencies = [
"platformdirs >= 4.1",
"python-dateutil",
"requests >= 2.7",
"typing_extensions",
]

[project.optional-dependencies]
Expand Down
10 changes: 3 additions & 7 deletions sdmx/format/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
from dataclasses import InitVar, dataclass, field
from enum import Enum, IntFlag
from functools import lru_cache
from typing import List, Optional, Union

try:
from typing import Literal
except ImportError: # Python 3.7
from typing_extensions import Literal # type: ignore
from typing import List, Literal, Optional, Union

from sdmx.util import parse_content_type

Expand All @@ -26,7 +21,8 @@
Flag = IntFlag("Flag", "data meta ss ts")
f = Flag

#: SDMX standard versions.
#: SDMX standard versions. In this enumeration, the strings "3.0.0" and "3.0" evaluate
#: to the same member.
Version = Enum(
"Version",
{"1.0.0": 1, "2.0.0": 2, "2.1": 2.1, "3.0.0": 3, "3.0": 3, "unknown": None},
Expand Down

0 comments on commit ef08c33

Please sign in to comment.