scripts/python-skywater-pdk: update doctest to python 3.11

This commit is contained in:
Johan Euphrosine 2023-06-02 16:20:52 +09:00
parent 7198cf6471
commit 2ec32adbc3
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ class TimingType(enum.IntFlag):
def names(self): def names(self):
o = [] o = []
for t in TimingType: for _, t in TimingType.__members__.items():
if t in self: if t in self:
o.append(t.name) o.append(t.name)
return ", ".join(o) return ", ".join(o)
@ -123,7 +123,7 @@ class TimingType(enum.IntFlag):
@property @property
def types(self): def types(self):
tt = set(t for t in TimingType if t in self) tt = set(t for _, t in TimingType.__members__.items() if t in self)
if TimingType.ccsnoise in tt: if TimingType.ccsnoise in tt:
tt.remove(TimingType.basic) tt.remove(TimingType.basic)
return list(tt) return list(tt)