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:
whitequark 2019-09-23 11:08:43 +00:00
parent 2da0133d52
commit 649444449d
2 changed files with 1 additions and 7 deletions

View file

@ -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)