Skip to content

Commit

Permalink
Bump Pyright (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk authored Oct 24, 2023
1 parent 122ac31 commit 3da0f5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion constants/ecp5_platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions test/regression/cocotb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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())


Expand Down

0 comments on commit 3da0f5c

Please sign in to comment.