Skip to content

Commit

Permalink
support running tests on Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Jun 30, 2022
1 parent 39b86ed commit a65862a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion reflect/_lib_element.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
from __future__ import annotations
from dataclasses import dataclass, fields
from functools import cached_property

import svg

try:
from functools import cached_property
except ImportError:
cached_property = property # type: ignore


@dataclass
class LibElement:
Expand Down
7 changes: 6 additions & 1 deletion reflect/_mdn_attr.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
from __future__ import annotations
import re
from dataclasses import dataclass
from functools import cached_property
from pathlib import Path

import yaml


try:
from functools import cached_property
except ImportError:
cached_property = property # type: ignore


REX_EL = re.compile(r'li>\{\{\s*SVGElement\(["\']([a-zA-Z-]+)["\']\)\s*\}\}\.?</')
DEPRECATED = [
# attributes of <font-face> which is deprecated
Expand Down

0 comments on commit a65862a

Please sign in to comment.