Skip to content

Commit

Permalink
Fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed Jul 16, 2024
1 parent c8ffcb5 commit 58bfbef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mercury_engine_data_structures/type_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit 58bfbef

Please sign in to comment.