Skip to content

Commit eebcebe

Browse files
authoredDec 7, 2022
Fix CI (#2)
* Fix style * Fix py3.7
1 parent 37c932c commit eebcebe

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed
 

‎leda/gen/base.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
import dataclasses
44
import datetime
5-
import functools
65
import logging
76
import pathlib
87
from typing import IO, Any, List, Mapping, MutableMapping, Optional, Union
98

9+
import cached_property
10+
1011
logger = logging.getLogger(__name__)
1112
logger.addHandler(logging.NullHandler())
1213

@@ -22,7 +23,7 @@ class Report:
2223

2324
cell_timeout: Optional[datetime.timedelta] = None
2425

25-
@functools.cached_property
26+
@cached_property.cached_property
2627
def full_name(self) -> str:
2728
if self.tag:
2829
parts = [self.name, self.tag]
@@ -37,7 +38,7 @@ def full_name(self) -> str:
3738
def handle(self) -> Union[str, IO]:
3839
raise NotImplementedError
3940

40-
@functools.cached_property
41+
@cached_property.cached_property
4142
def inject_code(self) -> Optional[str]:
4243
if not self.params and not self.additional_inject_code:
4344
return None

‎leda/vendor/static_ipywidgets/static_ipywidgets/tests/test_interact.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ def test_simple():
2222
func, x=widgets.DropDownWidget([1, 2])
2323
)
2424
html = static_interact.html()
25-
assert """
25+
assert (
26+
"""
2627
<div name="subdiv-x1" style="display:block">
2728
2
2829
</div>
2930
3031
<div name="subdiv-x2" style="display:none">
3132
4
32-
</div>""" in html
33+
</div>"""
34+
in html
35+
)

‎requirements-bundle0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# python 3.8.10
2+
cached-property == 1.5.2
23
ipython == 7.16.1
34
ipywidgets == 7.5.1
45
markdown2 == 2.3.9

‎requirements-bundle1.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# python 3.8.10
2+
cached-property == 1.5.2
23
ipython == 7.16.1
34
ipywidgets == 7.5.1
45
markdown2 == 2.3.9

‎requirements-bundle2.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# python 3.10.6
22
# TODO!
3+
cached-property == 1.5.2
34
ipython == 8.7.0
45
ipywidgets == 8.0.3
56
markdown2 == 2.4.6

‎setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ packages = find:
3535
python_requires = >=3.7
3636
install_requires =
3737
# See also requirements-bundle*.txt. requirements-bundle0 is used as a min constraint.
38+
cached-property == 1.5.2
3839
ipython >= 7.16.1
3940
ipywidgets >= 7.5.1
4041
markdown2 >= 2.3.9

0 commit comments

Comments
 (0)