Skip to content

Commit

Permalink
flake8 not passing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Jan 17, 2025
1 parent 95933c1 commit 245a2db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/scaffold/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
from packaging.version import parse as parse_version, Version as PackagingVersion
from .bus import ScaffoldBus, Register, TimeoutError

# Dynamically managed by Peotry
__version__ = "0.0.0"

# Prevent flake8 from complaining about unused import. This class is actually
# re-exported. This should be improved in the future.
TimeoutError = TimeoutError
__all__ = ["TimeoutError"]


class Signal:
Expand Down Expand Up @@ -1557,7 +1559,8 @@ def __init__(self, parent: "Scaffold", index: int, size: int):
super().__init__(parent, f"/chain{index}")
self.reg_control = self.add_register("wv", self.__ADDR_CONTROL + index * 0x10)
self.events = self.add_signals(*[f"event{i}" for i in range(size)])
# For backward compatibility with scripts accessing events with scaffold.chainX.eventX
# For backward compatibility with scripts accessing
# events with scaffold.chainX.eventX
for i, event in enumerate(self.events):
self.__dict__[f"event{i}"] = event

Expand Down

0 comments on commit 245a2db

Please sign in to comment.