Skip to content

Commit

Permalink
Fix CI (#2)
Browse files Browse the repository at this point in the history
* Fix style

* Fix py3.7
  • Loading branch information
yanovs authored Dec 7, 2022
1 parent 37c932c commit eebcebe
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
7 changes: 4 additions & 3 deletions leda/gen/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import dataclasses
import datetime
import functools
import logging
import pathlib
from typing import IO, Any, List, Mapping, MutableMapping, Optional, Union

import cached_property

logger = logging.getLogger(__name__)
logger.addHandler(logging.NullHandler())

Expand All @@ -22,7 +23,7 @@ class Report:

cell_timeout: Optional[datetime.timedelta] = None

@functools.cached_property
@cached_property.cached_property
def full_name(self) -> str:
if self.tag:
parts = [self.name, self.tag]
Expand All @@ -37,7 +38,7 @@ def full_name(self) -> str:
def handle(self) -> Union[str, IO]:
raise NotImplementedError

@functools.cached_property
@cached_property.cached_property
def inject_code(self) -> Optional[str]:
if not self.params and not self.additional_inject_code:
return None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ def test_simple():
func, x=widgets.DropDownWidget([1, 2])
)
html = static_interact.html()
assert """
assert (
"""
<div name="subdiv-x1" style="display:block">
2
</div>
<div name="subdiv-x2" style="display:none">
4
</div>""" in html
</div>"""
in html
)
1 change: 1 addition & 0 deletions requirements-bundle0.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# python 3.8.10
cached-property == 1.5.2
ipython == 7.16.1
ipywidgets == 7.5.1
markdown2 == 2.3.9
Expand Down
1 change: 1 addition & 0 deletions requirements-bundle1.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# python 3.8.10
cached-property == 1.5.2
ipython == 7.16.1
ipywidgets == 7.5.1
markdown2 == 2.3.9
Expand Down
1 change: 1 addition & 0 deletions requirements-bundle2.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# python 3.10.6
# TODO!
cached-property == 1.5.2
ipython == 8.7.0
ipywidgets == 8.0.3
markdown2 == 2.4.6
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ packages = find:
python_requires = >=3.7
install_requires =
# See also requirements-bundle*.txt. requirements-bundle0 is used as a min constraint.
cached-property == 1.5.2
ipython >= 7.16.1
ipywidgets >= 7.5.1
markdown2 >= 2.3.9
Expand Down

0 comments on commit eebcebe

Please sign in to comment.