Skip to content

Commit 69628b1

Browse files
authored
Merge pull request #28 from jwodder/no-typing-ext
Drop `typing_extensions` dependendency
2 parents 9a9098d + f67ceaa commit 69628b1

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ dependencies = [
4646
"packaging >= 20",
4747
"pydantic ~= 2.0",
4848
"requests ~= 2.20",
49-
"typing_extensions; python_version < '3.8'",
5049
]
5150

5251
[project.optional-dependencies]

src/pypi_simple/progress.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
from __future__ import annotations
22
from collections.abc import Callable
3-
import sys
43
from types import TracebackType
5-
from typing import TYPE_CHECKING, Any, Optional
6-
7-
if sys.version_info[:2] >= (3, 8):
8-
from typing import Protocol, runtime_checkable
9-
else:
10-
from typing_extensions import Protocol, runtime_checkable
4+
from typing import TYPE_CHECKING, Any, Optional, Protocol, runtime_checkable
115

126
if TYPE_CHECKING:
137
from typing_extensions import Self

0 commit comments

Comments
 (0)