File tree Expand file tree Collapse file tree 4 files changed +20
-21
lines changed
advanced-variadic-generics Expand file tree Collapse file tree 4 files changed +20
-21
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def copy(self) -> "MyClass":
1414# class MyClass:
1515# def __init__(self, x: int) -> None:
1616# self.x = x
17- #
17+ #
1818# # TODO: Fix the type hints of `copy` to make it type check
1919# def copy(self) -> MyClass:
2020# copied_object = MyClass(x=self.x)
Original file line number Diff line number Diff line change 1111# def __add__(self, other: "Array[*Ts]") -> "Array[*Ts]":
1212# ...
1313
14+
1415# For Python >= 3.12
1516class Array [* Ts ]:
1617 def __add__ (self , other : "Array[*Ts]" ) -> "Array[*Ts]" :
Original file line number Diff line number Diff line change 1515# # For Python < 3.12
1616# R = TypeVar("R")
1717# P = ParamSpec("P")
18- #
19- #
18+ #
19+ #
2020# class Fn(Generic[R, P]):
2121# def __init__(self, f: Callable[P, R]):
2222# self.f = f
23- #
23+ #
2424# def transform_callable(self) -> Callable[Concatenate[object, P], R]:
2525# ...
2626
Original file line number Diff line number Diff line change 22name = " "
33version = " "
44description = " "
5- authors = [
6- {name = " laike9m" , email = " laike9m@gmail.com" },
7- ]
5+ authors = [{ name = " laike9m" , email = " laike9m@gmail.com" }]
86dependencies = [
9- " flask>=3.0.0" ,
10- " pyright>=1.1.338" ,
11- " flask-sitemapper>=1.7.0" ,
12- " markdown>=3.5.1" ,
13- " flask-htmx>=0.3.2" ,
7+ " flask>=3.0.0" ,
8+ " pyright>=1.1.338" ,
9+ " flask-sitemapper>=1.7.0" ,
10+ " markdown>=3.5.1" ,
11+ " flask-htmx>=0.3.2" ,
1412]
15- requires-python = " > =3.12"
13+ requires-python = " ~ =3.12"
1614readme = " README.md"
17- license = {text = " MIT" }
15+ license = { text = " MIT" }
1816
1917[tool .pdm ]
2018plugins = [" pdm-autoexport" ]
@@ -24,16 +22,16 @@ dev = "flask --app app run --debug"
2422test = " pytest -n auto"
2523run_ruff = " ruff format"
2624djhtml.cmd = " djhtml --tabwidth 2 templates"
27- djhtml.env = {PYTHONUTF8 = " 1" }
28- format = {composite = [" run_ruff" , " djhtml" ]}
25+ djhtml.env = { PYTHONUTF8 = " 1" }
26+ format = { composite = [" run_ruff" , " djhtml" ] }
2927
3028[tool .pdm .dev-dependencies ]
3129dev = [
32- " pytest>=7.4.3" ,
33- " djhtml>=3.0.6" ,
34- " pre-commit>=3.5.0" ,
35- " pytest-xdist>=3.3.1" ,
36- " ruff>=0.1.14" ,
30+ " pytest>=7.4.3" ,
31+ " djhtml>=3.0.6" ,
32+ " pre-commit>=3.5.0" ,
33+ " pytest-xdist>=3.3.1" ,
34+ " ruff>=0.1.14" ,
3735]
3836
3937[[tool .pdm .autoexport ]]
You can’t perform that action at this time.
0 commit comments