@@ -831,7 +831,7 @@ def joystick(self) -> tcod.sdl.joystick.Joystick:
831831 return tcod .sdl .joystick .Joystick ._from_instance_id (self .which )
832832
833833 def __repr__ (self ) -> str :
834- return f"tcod.event.{ self .__class__ .__name__ } " f" (type={ self .type !r} , which={ self .which } )"
834+ return f"tcod.event.{ self .__class__ .__name__ } (type={ self .type !r} , which={ self .which } )"
835835
836836 def __str__ (self ) -> str :
837837 prefix = super ().__str__ ().strip ("<>" )
@@ -934,9 +934,7 @@ def from_sdl_event(cls, sdl_event: Any) -> JoystickHat:
934934 return cls ("JOYHATMOTION" , sdl_event .jhat .which , * _HAT_DIRECTIONS [sdl_event .jhat .hat ])
935935
936936 def __repr__ (self ) -> str :
937- return (
938- f"tcod.event.{ self .__class__ .__name__ } " f"(type={ self .type !r} , which={ self .which } , x={ self .x } , y={ self .y } )"
939- )
937+ return f"tcod.event.{ self .__class__ .__name__ } (type={ self .type !r} , which={ self .which } , x={ self .x } , y={ self .y } )"
940938
941939 def __str__ (self ) -> str :
942940 prefix = super ().__str__ ().strip ("<>" )
@@ -977,7 +975,7 @@ def from_sdl_event(cls, sdl_event: Any) -> JoystickButton:
977975 return cls (type , sdl_event .jbutton .which , sdl_event .jbutton .button )
978976
979977 def __repr__ (self ) -> str :
980- return f"tcod.event.{ self .__class__ .__name__ } " f" (type={ self .type !r} , which={ self .which } , button={ self .button } )"
978+ return f"tcod.event.{ self .__class__ .__name__ } (type={ self .type !r} , which={ self .which } , button={ self .button } )"
981979
982980 def __str__ (self ) -> str :
983981 prefix = super ().__str__ ().strip ("<>" )
@@ -1032,7 +1030,7 @@ def controller(self) -> tcod.sdl.joystick.GameController:
10321030 return tcod .sdl .joystick .GameController ._from_instance_id (self .which )
10331031
10341032 def __repr__ (self ) -> str :
1035- return f"tcod.event.{ self .__class__ .__name__ } " f" (type={ self .type !r} , which={ self .which } )"
1033+ return f"tcod.event.{ self .__class__ .__name__ } (type={ self .type !r} , which={ self .which } )"
10361034
10371035 def __str__ (self ) -> str :
10381036 prefix = super ().__str__ ().strip ("<>" )
0 commit comments