hdl.ast: make Signal(name=) a keyword-only argument.
Almost no code would specify Signal(_, name) as a positional argument on purpose, but forgetting parens and accidentally placing signedness into the name position is so common that we had a test for it.
This commit is contained in:
parent
2da0133d52
commit
649444449d
2 changed files with 1 additions and 7 deletions
|
|
@ -729,7 +729,7 @@ class Signal(Value, DUID):
|
|||
attrs : dict
|
||||
"""
|
||||
|
||||
def __init__(self, shape=None, name=None, *, reset=0, reset_less=False, min=None, max=None,
|
||||
def __init__(self, shape=None, *, name=None, reset=0, reset_less=False, min=None, max=None,
|
||||
attrs=None, decoder=None, src_loc_at=0):
|
||||
super().__init__(src_loc_at=src_loc_at)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue