diff --git a/src/mercury_engine_data_structures/type_lib.py b/src/mercury_engine_data_structures/type_lib.py index 83dccfb8..e0ec9775 100644 --- a/src/mercury_engine_data_structures/type_lib.py +++ b/src/mercury_engine_data_structures/type_lib.py @@ -249,7 +249,7 @@ def _find_type_errors(self, __value: typing.Any) -> BaseException | None: if __value in name_to_entry: __value = name_to_entry[__value] - if type(__value) != expected: + if type(__value) is not expected: return TypeError(f"Expected {self.name}; got {type(__value).__name__}") return None @@ -271,7 +271,7 @@ def _find_type_errors(self, __value: typing.Any) -> BaseException | None: enum_type: EnumType = self.type_lib.get_type(self.enum) expected = enum_type.enum_class() - if type(__value) == expected: + if type(__value) is expected: return None if isinstance(__value, int) and not isinstance(__value, enum.IntEnum):