fixes based on mypy
This commit is contained in:
parent
f766a3ad64
commit
7befe89af3
2 changed files with 7 additions and 7 deletions
|
|
@ -595,7 +595,7 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
|
|||
target_pat = flattened[target]
|
||||
if target_pat is None:
|
||||
raise PatternError(f'Circular reference in {name} to {target}')
|
||||
if target_pat.is_empty() # avoid some extra allocations
|
||||
if target_pat.is_empty(): # avoid some extra allocations
|
||||
continue
|
||||
|
||||
p = ref.as_pattern(pattern=flattened[target])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue