Skip to content

Commit 1d260a0

Browse files
authored
build: Install typing_extensions only for python<3.8 (#220)
To mirror the changes from `aiohttp==~3.8`, which also install `typing-extensions` only for Python 3.8-.
1 parent 5328f59 commit 1d260a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ isodate = "^0.6.0"
121121
openapi-core = ">=0.13.4,<0.13.7"
122122
pyrsistent = ">=0.16,<0.19"
123123
PyYAML = ">=5.1,<7.0"
124-
typing-extensions = ">=3.7,<5.0"
124+
typing-extensions = {python = "<3.8", version = ">=3.7,<5.0"}
125125

126126
[tool.poetry.dev-dependencies]
127127
aioredis = {extras = ["hiredis"], version = "^2.0.0"}

src/rororo/annotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414

1515
try:
16-
from typing_extensions import Literal, Protocol, TypedDict
16+
from typing import Literal, Protocol, TypedDict
1717
except ImportError:
18-
from typing import Literal, Protocol, TypedDict # type: ignore
18+
from typing_extensions import Literal, Protocol, TypedDict # type: ignore
1919

2020
from aiohttp import web
2121
from aiohttp_middlewares.annotations import Handler

0 commit comments

Comments
 (0)