diff --git a/constants/ecp5_platforms.py b/constants/ecp5_platforms.py index 8bca17145..0e3545690 100644 --- a/constants/ecp5_platforms.py +++ b/constants/ecp5_platforms.py @@ -55,7 +55,7 @@ def __init__(self, pins: Iterable[str]): def p(self, count: int = 1): return " ".join([self.pin_bag.pop() for _ in range(count)]) - def named_pin(self, names: list[str]): + def named_pin(self, names: Iterable[str]): for name in names: if name in self.pin_bag: self.pin_bag.remove(name) diff --git a/requirements-dev.txt b/requirements-dev.txt index 766fd7c8e..35c93666f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -9,7 +9,7 @@ myst-parser==0.18.0 numpydoc==1.5.0 parameterized==0.8.1 pre-commit==2.16.0 -pyright==1.1.308 +pyright==1.1.332 Sphinx==5.1.1 sphinx-rtd-theme==1.0.0 sphinxcontrib-mermaid==0.8.1 diff --git a/test/regression/cocotb.py b/test/regression/cocotb.py index db7fe9aa8..e59bcef03 100644 --- a/test/regression/cocotb.py +++ b/test/regression/cocotb.py @@ -73,7 +73,7 @@ async def start(self): while True: while not (self.bus.stb.value and self.bus.cyc.value): - await clock_edge_event + await clock_edge_event # type: ignore sig_m = WishboneMasterSignals() self.bus.sample(sig_m) @@ -124,10 +124,10 @@ async def start(self): ) for _ in range(self.delay): - await clock_edge_event + await clock_edge_event # type: ignore self.bus.drive(sig_s) - await clock_edge_event + await clock_edge_event # type: ignore self.bus.drive(WishboneSlaveSignals())