Skip to content

Commit cca8bad

Browse files
authored
Remove typing_extensions and Delete advanced-overload-generic (laike9m#107)
1 parent 6b53fd1 commit cca8bad

File tree

7 files changed

+37
-109
lines changed

7 files changed

+37
-109
lines changed

challenges/advanced-overload-generic/question.py

-27
This file was deleted.

challenges/advanced-overload-generic/solution.py

-42
This file was deleted.

challenges/extreme-constructor/question.py

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ def constructor_parameter():
1212

1313

1414
## End of your code ##
15+
from typing import Any
16+
17+
1518
class Foo:
1619
a: int
1720
b: str

challenges/extreme-constructor/solution.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
and return a wrapper function with the same signature as the constructor of Foo,
66
and function decorated by `constructor_parameter` can be called with an instance of Foo.
77
"""
8-
from typing import Any, Callable, TypeVar
9-
10-
from typing_extensions import ParamSpec
8+
from typing import Callable, ParamSpec, TypeVar
119

1210
T = TypeVar("T")
1311
P = ParamSpec("P")
@@ -21,6 +19,9 @@ def constructor_parameter(
2119

2220

2321
## End of your code ##
22+
from typing import Any
23+
24+
2425
class Foo:
2526
a: int
2627
b: str

pdm.lock

+25-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ authors = [
77
]
88
dependencies = [
99
"flask>=3.0.0",
10-
"typing-extensions>=4.8.0",
1110
"pyright>=1.1.338",
1211
"flask-sitemapper>=1.7.0",
1312
"markdown>=3.5.1",
@@ -34,7 +33,7 @@ dev = [
3433
"djhtml>=3.0.6",
3534
"pre-commit>=3.5.0",
3635
"pytest-xdist>=3.3.1",
37-
"black>=23.11.0",
36+
"black<24.1.0",
3837
]
3938

4039
[[tool.pdm.autoexport]]

requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
blinker==1.6.3
55
click==8.1.7
6-
flask==3.0.0
6+
colorama==0.4.6; platform_system == "Windows"
7+
flask==3.0.1
78
flask-htmx==0.3.2
89
flask-sitemapper==1.7.0
910
itsdangerous==2.1.2
1011
jinja2==3.1.2
11-
markdown==3.5.1
12+
markdown==3.5.2
1213
MarkupSafe==2.1.3
1314
nodeenv==1.8.0
14-
pyright==1.1.338
15+
pyright==1.1.348
1516
setuptools==68.2.2
16-
typing-extensions==4.8.0
1717
Werkzeug==3.0.0

0 commit comments

Comments
 (0)