Skip to content

Commit

Permalink
Remove super calls with parameters
Browse files Browse the repository at this point in the history
Ref. eng/recordflux/RecordFlux!1474
  • Loading branch information
treiher committed Feb 14, 2024
1 parent c4d1e92 commit b40caf0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rflx/ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,6 @@ def substituted(self, mapping: Mapping[ID, ID]) -> IntAttr:
def to_z3_expr(self) -> z3.ArithRef:
return z3.Int(str(self))

def _update_str(self) -> None:
super(IntAttr, self)._update_str() # noqa: UP008


@define(eq=False)
class Size(IntAttr):
Expand Down Expand Up @@ -1374,7 +1371,7 @@ def type_(self) -> rty.AnyInteger:
return self.return_type

def to_z3_expr(self) -> z3.ArithRef:
result = super(IntIfExpr, self).to_z3_expr() # noqa: UP008
result = super().to_z3_expr()
assert isinstance(result, z3.ArithRef)
return result

Expand All @@ -1391,7 +1388,7 @@ def type_(self) -> rty.Enumeration:
return rty.BOOLEAN

def to_z3_expr(self) -> z3.BoolRef:
result = super(BoolIfExpr, self).to_z3_expr() # noqa: UP008
result = super().to_z3_expr()
assert isinstance(result, z3.BoolRef)
return result

Expand Down

0 comments on commit b40caf0

Please sign in to comment.