lib.io: use keyword-only arguments in Pin().

This commit is contained in:
whitequark 2019-10-16 19:50:04 +00:00
parent 045f5e19a2
commit fb90043460
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ class Pin(Record):
cannot change direction more than once per cycle, so at most one output enable signal
is present.
"""
def __init__(self, width, dir, xdr=0, name=None, src_loc_at=0):
def __init__(self, width, dir, *, xdr=0, name=None, src_loc_at=0):
self.width = width
self.dir = dir
self.xdr = xdr