Skip to content

Commit

Permalink
build: Install typing_extensions only for python<3.8 (#220)
Browse files Browse the repository at this point in the history
To mirror the changes from `aiohttp==~3.8`, which also install
`typing-extensions` only for Python 3.8-.
  • Loading branch information
q0w authored Dec 16, 2021
1 parent 5328f59 commit 1d260a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ isodate = "^0.6.0"
openapi-core = ">=0.13.4,<0.13.7"
pyrsistent = ">=0.16,<0.19"
PyYAML = ">=5.1,<7.0"
typing-extensions = ">=3.7,<5.0"
typing-extensions = {python = "<3.8", version = ">=3.7,<5.0"}

[tool.poetry.dev-dependencies]
aioredis = {extras = ["hiredis"], version = "^2.0.0"}
Expand Down
4 changes: 2 additions & 2 deletions src/rororo/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@


try:
from typing_extensions import Literal, Protocol, TypedDict
from typing import Literal, Protocol, TypedDict
except ImportError:
from typing import Literal, Protocol, TypedDict # type: ignore
from typing_extensions import Literal, Protocol, TypedDict # type: ignore

from aiohttp import web
from aiohttp_middlewares.annotations import Handler
Expand Down

0 comments on commit 1d260a0

Please sign in to comment.