Skip to content

Commit

Permalink
Remove dunder calls for str
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexeh committed Apr 1, 2024
1 parent aa12eb5 commit be32784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion joystick_diagrams/input/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def validate_guid(guid: str) -> str:
"""

try:
return UUID(guid.strip()).__str__()
return str(UUID(guid.strip()))
except ValueError as e:
raise ValueError(f"GUID {guid} is not valid: {e}") from e

Expand Down
2 changes: 1 addition & 1 deletion joystick_diagrams/input/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __repr__(self):
return f"{self.input_control} - {self.command} - {self.modifiers}"

def __str__(self):
mod_to_string = [x.__str__() for x in self.modifiers]
mod_to_string = [str(x) for x in self.modifiers]
return f"{self.command} - {str(mod_to_string)}"

def __post_init__(self):
Expand Down

0 comments on commit be32784

Please sign in to comment.