From 9635ab56a696c3e4a613f8a4dcb1bc0962a4a9a7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:38:13 +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.15 → v0.16](https://github.com/abravalheri/validate-pyproject/compare/v0.15...v0.16) - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) --- .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 0b658902..a3c3f992 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.15 + rev: v0.16 hooks: - id: validate-pyproject fail_fast: true @@ -73,7 +73,7 @@ repos: # Last modifier: Coding Standard - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black From a3508ced58415689dadf9b07540be544d51e546b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:41:08 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyvex/__init__.py | 1 + pyvex/types.py | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyvex/__init__.py b/pyvex/__init__.py index 22703f4a..bbddbe85 100644 --- a/pyvex/__init__.py +++ b/pyvex/__init__.py @@ -2,6 +2,7 @@ PyVEX provides an interface that translates binary code into the VEX intermediate representation (IR). For an introduction to VEX, take a look here: https://docs.angr.io/advanced-topics/ir """ + __version__ = "9.2.87.dev0" from . import const, expr, stmt diff --git a/pyvex/types.py b/pyvex/types.py index c7c42314..09331f7c 100644 --- a/pyvex/types.py +++ b/pyvex/types.py @@ -25,11 +25,9 @@ class Arch(Protocol): register_list: List[Register] registers: Dict[str, Tuple[int, int]] - def translate_register_name(self, offset: int, size: Optional[int] = None) -> Optional[str]: - ... + def translate_register_name(self, offset: int, size: Optional[int] = None) -> Optional[str]: ... - def get_register_offset(self, name: str) -> int: - ... + def get_register_offset(self, name: str) -> int: ... @runtime_checkable