fixes based on mypy

This commit is contained in:
Jan Petykiewicz 2023-02-09 16:43:06 -08:00 committed by jan
commit 7befe89af3
2 changed files with 7 additions and 7 deletions

View file

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