Skip to content

Commit 95f80d4

Browse files
committed
Upgrade type annotations
1 parent 144ef6b commit 95f80d4

File tree

7 files changed

+486
-483
lines changed

7 files changed

+486
-483
lines changed

reflect/_lib_element.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
from dataclasses import dataclass, fields
34

45
import svg
@@ -15,7 +16,7 @@ class LibElement:
1516
fields: list[str]
1617

1718
@classmethod
18-
def parse_all(cls) -> list['LibElement']:
19+
def parse_all(cls) -> list[LibElement]:
1920
result = []
2021
for el in svg.Element.__subclasses__():
2122
result.append(cls(

reflect/_mdn_attr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def parse(cls, path: Path) -> MDNAttr | None:
4949
return cls(**fields, content=second, spec_urls=spec_urls)
5050

5151
@classmethod
52-
def parse_all(cls, path: Path) -> list['MDNAttr']:
52+
def parse_all(cls, path: Path) -> list[MDNAttr]:
5353
result = []
5454
for subpath in (path / 'attribute').iterdir():
5555
attr = cls.parse(subpath)

0 commit comments

Comments
 (0)