amaranth.hdl: start all private names with an underscore.
This change completes commit 9dc0617e and makes all the tests pass. It corresponds with the ongoing langauge reference documentation effort. Fixes #781.
This commit is contained in:
parent
cf83193bf9
commit
5dd1223cf8
34 changed files with 167 additions and 162 deletions
|
|
@ -86,8 +86,8 @@ Like the standard Python :class:`enum.IntEnum` and :class:`enum.IntFlag` classes
|
|||
.. doctest::
|
||||
|
||||
>>> a = Signal(TransparentEnum)
|
||||
>>> type(a)
|
||||
<class 'amaranth.hdl.ast.Signal'>
|
||||
>>> type(a) is Signal
|
||||
True
|
||||
|
||||
It is also possible to define a custom view class for a given enum:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue