From a4337f7fbc871146e6e7913fdecd15eff49a83f2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 20:37:09 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/abravalheri/validate-pyproject: v0.13 → v0.14](https://github.com/abravalheri/validate-pyproject/compare/v0.13...v0.14) - [github.com/astral-sh/ruff-pre-commit: v0.0.284 → v0.0.285](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.284...v0.0.285) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] From f7f065607f21bcdfe17a1a377c6f0c60c4ecbba6 Mon Sep 17 00:00:00 2001 From: Kevin Phoenix Date: Tue, 22 Aug 2023 14:59:40 -0700 Subject: [PATCH 2/2] Fix lint error --- pyvex/expr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: