diff --git a/jsonlines/jsonlines.py b/jsonlines/jsonlines.py index 31aa946..e19730f 100644 --- a/jsonlines/jsonlines.py +++ b/jsonlines/jsonlines.py @@ -8,7 +8,6 @@ import io import json import os -import sys import types import typing from typing import ( @@ -18,6 +17,7 @@ Iterable, Iterator, List, + Literal, Optional, Tuple, Type, @@ -27,11 +27,6 @@ overload, ) -if sys.version_info >= (3, 8): - from typing import Literal -else: - from typing_extensions import Literal # pragma: no cover - import attr orjson: Optional[types.ModuleType] diff --git a/setup.cfg b/setup.cfg index 23c8ddc..17dcad0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,10 +23,9 @@ classifiers = [options] packages = jsonlines -python_requires = >=3.7 +python_requires = >=3.8 install_requires = attrs>=19.2.0 - typing_extensions; python_version < "3.8" [options.package_data] jsonlines = py.typed