Commit f34424b
committed
typing: fix dataclass_with_properties for static type checkers
Using dataclass_transform decorators, we can tell the static type
checkers that the class under construction is indeed a dataclass.
More info:
https://typing.readthedocs.io/en/latest/spec/dataclasses.html
Signed-off-by: János Kukovecz <kukoveczjanos@gmail.com>1 parent 1973ce1 commit f34424b
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
0 commit comments