diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 674d2ef1..f21fb1de 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: # - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.13 + rev: v0.14 hooks: - id: validate-pyproject fail_fast: true @@ -66,7 +66,7 @@ repos: args: [--py38-plus] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.284 + rev: v0.0.285 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/pyvex/expr.py b/pyvex/expr.py index 8ba87779..ff2f07e6 100644 --- a/pyvex/expr.py +++ b/pyvex/expr.py @@ -70,7 +70,7 @@ def replace_expression(self, replacements): v = getattr(self, k) if isinstance(v, IRExpr) and v in replacements: setattr(self, k, replacements.get(v)) - elif type(v) is list: + elif isinstance(v, list): # Replace the instance in the list for i, expr_ in enumerate(v): if isinstance(expr_, IRExpr) and expr_ in replacements: