Add Python 3.11 compatibility

This commit was merged in pull request #5.
This commit is contained in:
2026-05-29 23:17:28 +02:00
parent 36418470a6
commit 87eb94045c
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -20,8 +20,9 @@ class SeatPixel(Component):
self.associated_user = await self.seat.user.fetch()
async def on_press(self, _: PointerEvent) -> None:
self.session.navigate_to(f"./seat-info?seat_id={self.seat_id.replace("\n", "")}")
seat_id = self.seat_id.replace("\n", "")
self.session.navigate_to(f"./seat-info?seat_id={seat_id}")
def determine_color(self) -> Color:
if self.seat is not None:
try: