hdl.ast: improve repr() for Shape.
authorwhitequark <whitequark@whitequark.org>
Sun, 12 Apr 2020 03:59:56 +0000 (03:59 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 13:25:01 +0000 (13:25 +0000)
commit7cabf98693bcf56fa3d6a9e46edda3684a72c7e6
treee577fa4d877dc208a7f6b1875acf130f2e6e74ba
parent00544ece2a46f3129d77e4a8e9884e5dd4cabe6a
hdl.ast: improve repr() for Shape.

The default __repr__() from typing.NamedTuple does not include
the module name, so the replacement (which uses the preferred syntax
for specifying these shapes) doesn't either.
nmigen/hdl/ast.py
nmigen/test/test_hdl_ast.py