Fix list comprehension parenthesis location
All checks were successful
build / test (3.10) (release) Successful in 6s
build / test (3.11) (release) Successful in 6s
build / test (3.12) (release) Successful in 6s
build / test (3.13) (release) Successful in 6s
build / test (3.9) (release) Successful in 6s
build / lint (release) Successful in 8s
build / mypy (release) Successful in 9s
build / Build distributions (release) Successful in 7s
build / deploy (release) Successful in 6s
build / test (3.10) (push) Successful in 6s
build / test (3.11) (push) Successful in 6s
build / test (3.12) (push) Successful in 6s
build / test (3.13) (push) Successful in 6s
build / test (3.9) (push) Successful in 7s
build / lint (push) Successful in 8s
build / mypy (push) Successful in 9s
build / Build distributions (push) Successful in 7s
build / deploy (push) Has been skipped
All checks were successful
build / test (3.10) (release) Successful in 6s
build / test (3.11) (release) Successful in 6s
build / test (3.12) (release) Successful in 6s
build / test (3.13) (release) Successful in 6s
build / test (3.9) (release) Successful in 6s
build / lint (release) Successful in 8s
build / mypy (release) Successful in 9s
build / Build distributions (release) Successful in 7s
build / deploy (release) Successful in 6s
build / test (3.10) (push) Successful in 6s
build / test (3.11) (push) Successful in 6s
build / test (3.12) (push) Successful in 6s
build / test (3.13) (push) Successful in 6s
build / test (3.9) (push) Successful in 7s
build / lint (push) Successful in 8s
build / mypy (push) Successful in 9s
build / Build distributions (push) Successful in 7s
build / deploy (push) Has been skipped
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
version_info = (0, 0, 3)
|
||||
version_info = (0, 0, 4)
|
||||
__version__ = ".".join([str(n) for n in version_info])
|
||||
|
||||
@@ -45,7 +45,7 @@ class Generator(RDLListener):
|
||||
assert child.array_dimensions is not None
|
||||
if len(child.array_dimensions) > 1:
|
||||
raise NotImplementedError("Multidimensional arrays not supported")
|
||||
self.f.write(f"{' '*self.indent_level*4} self.{child.inst_name} = [self.{child.inst_name}Class(self.addr + {child.raw_address_offset} + {child.size}*i for i in range({child.n_elements}))]\n")
|
||||
self.f.write(f"{' '*self.indent_level*4} self.{child.inst_name} = [self.{child.inst_name}Class(self.addr + {child.raw_address_offset} + {child.size}*i) for i in range({child.n_elements})]\n")
|
||||
else:
|
||||
self.f.write(f"{' '*self.indent_level*4} self.{child.inst_name} = self.{child.inst_name}Class(self.addr + {child.address_offset})\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user