[GH-ISSUE #113] Error on src/ui_components.py:1383 with Python 3.8 #26

Closed
opened 2026-05-07 00:17:55 +02:00 by BreizhHardware · 2 comments

Originally created by @111110100 on GitHub (Dec 23, 2025).
Original GitHub issue: https://github.com/IAmTomShaw/f1-race-replay/issues/113

def _point_in_rect(self, x: float, y: float, rect: tuple[float, float, float, float] | None) -> bool:

type | None only supported on Python 9.10+?

If this will be the required Python version, README.md needs update.

Originally created by @111110100 on GitHub (Dec 23, 2025). Original GitHub issue: https://github.com/IAmTomShaw/f1-race-replay/issues/113 ```python def _point_in_rect(self, x: float, y: float, rect: tuple[float, float, float, float] | None) -> bool: ``` *type* | None only supported on Python 9.10+? If this will be the required Python version, README.md needs update.
Author
Owner

@111110100 commented on GitHub (Dec 23, 2025):

Since line 2 already has:

from typing import List, Literal, Tuple, Optional

maybe re-write it to:

def _point_in_rect(self, x: float, y: float, rect: Optional[Tuple[float, float, float, float]]) -> bool:
<!-- gh-comment-id:3688213779 --> @111110100 commented on GitHub (Dec 23, 2025): Since line 2 already has: ```python from typing import List, Literal, Tuple, Optional ``` maybe re-write it to: ```python def _point_in_rect(self, x: float, y: float, rect: Optional[Tuple[float, float, float, float]]) -> bool: ```
Author
Owner

@111110100 commented on GitHub (Dec 27, 2025):

Python requirement bumped up to 3.11+

<!-- gh-comment-id:3694280067 --> @111110100 commented on GitHub (Dec 27, 2025): Python requirement bumped up to 3.11+
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#26
No description provided.