From eb407ec9d3bc87eeee517dd6698b86ffca351e50 Mon Sep 17 00:00:00 2001 From: angie Date: Sat, 26 Aug 2023 22:11:11 -0400 Subject: [PATCH] Add missing hash function to type hint file --- Cargo.toml | 2 +- include/common/RabbitizerVersion.h | 2 +- pyproject.toml | 2 +- rabbitizer/Enum.pyi | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e976c77..27d1bd9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "rabbitizer" # Version should be synced with include/common/RabbitizerVersion.h -version = "1.7.6" +version = "1.7.7" edition = "2021" authors = ["Anghelo Carvajal "] description = "MIPS instruction decoder" diff --git a/include/common/RabbitizerVersion.h b/include/common/RabbitizerVersion.h index ad13303..2b55d68 100644 --- a/include/common/RabbitizerVersion.h +++ b/include/common/RabbitizerVersion.h @@ -14,7 +14,7 @@ extern "C" { // Header version #define RAB_VERSION_MAJOR 1 #define RAB_VERSION_MINOR 7 -#define RAB_VERSION_PATCH 6 +#define RAB_VERSION_PATCH 7 #define RAB_VERSION_STR RAB_STRINGIFY(RAB_VERSION_MAJOR) "." RAB_STRINGIFY(RAB_VERSION_MINOR) "." RAB_STRINGIFY(RAB_VERSION_PATCH) diff --git a/pyproject.toml b/pyproject.toml index 25d82dc..2a0f4bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ [project] name = "rabbitizer" # Version should be synced with include/common/RabbitizerVersion.h -version = "1.7.6" +version = "1.7.7" description = "MIPS instruction decoder" # license = "MIT" readme = "README.md" diff --git a/rabbitizer/Enum.pyi b/rabbitizer/Enum.pyi index 1ca25b9..c7285a2 100644 --- a/rabbitizer/Enum.pyi +++ b/rabbitizer/Enum.pyi @@ -20,5 +20,7 @@ class Enum: def __gt__(self, __o: object) -> bool: ... def __ge__(self, __o: object) -> bool: ... + def __hash__(self) -> int: ... + def __repr__(self) -> str: ... def __str__(self) -> str: ...