Skip to content

Commit 70318f6

Browse files
committed
Changed typing.TypedDict to typing_extensions.TypedDict
1 parent f821cd5 commit 70318f6

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

aiohttp_dynamic/routing.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import abc
1616
import yarl
1717
import typing
18+
import typing_extensions
1819
import re
1920
import functools
2021

@@ -344,7 +345,7 @@ def add_prefix(self, prefix: str) -> None:
344345
# TODO: Add support for subapps
345346
raise RuntimeError('Prefixes are not supported in PlainPathHandler')
346347

347-
def get_info(self) -> typing.TypedDict:
348+
def get_info(self) -> typing_extensions.TypedDict:
348349
"""
349350
Return a dict with additional info useful for introspection (c)
350351
"""
@@ -440,7 +441,7 @@ def add_prefix(self, prefix: str) -> None:
440441
# TODO: Add support for subapps
441442
raise RuntimeError('Prefixes are not supported in DynamicPathHandler')
442443

443-
def get_info(self) -> typing.TypedDict:
444+
def get_info(self) -> typing_extensions.TypedDict:
444445
"""
445446
Return a dict with additional info useful for introspection (c)
446447
"""
@@ -658,7 +659,7 @@ def add_prefix(self, prefix: str) -> None:
658659
# TODO: Add support for subapps
659660
raise RuntimeError('Prefixes are not supported in DynamicRouter')
660661

661-
def get_info(self) -> typing.TypedDict:
662+
def get_info(self) -> typing_extensions.TypedDict:
662663
"""
663664
Return a dict with additional info useful for introspection (c)
664665
"""

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
typing_extensions
12
aiohttp
23
yarl

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
setup(
44
name = 'aiohttp_dynamic',
55
packages = ['aiohttp_dynamic'],
6-
version = '1.1.3',
6+
version = '1.1.4',
77
license='Apache License 2.0',
88
description = 'aiohttp extension for creating and modifying dynamic routes in runtime',
99
author = 'bitrate16',
1010
author_email = 'bitrate16@gmail.com',
1111
url = 'https://github.com/bitrate16/aiohttp-dynamic',
12-
download_url = 'https://github.com/bitrate16/aiohttp-dynamic/archive/1.1.3.tar.gz',
12+
download_url = 'https://github.com/bitrate16/aiohttp-dynamic/archive/1.1.4.tar.gz',
1313
keywords = ['aiohttp', 'dynamic', 'routing', 'mutable', 'aiohttp-server'],
1414
install_requires = [
1515
'aiohttp',

0 commit comments

Comments
 (0)