Skip to content

Conversation

@JaskRendix
Copy link

Summary of changes:

  • replaced plain dictionaries with TaskInfo and CompetitorInformation dataclasses
  • wrapped parsing logic in try-except blocks to catch and skip malformed lines
  • used more precise type hints such as list[str], Optional and Union
  • refactored get_waypoint to use dataclass fields directly
  • replaced manual list appending in get_waypoints with a list comprehension
  • replaced older string formatting with f-strings
  • all existing logic and behavior remain intact, ensuring backward compatibility with previous usage
  • reformatted code blocks and aligned indentation for better visual structure, added docstring to get_waypoint_name_lat_long for clarity
  • added new tests

@JaskRendix JaskRendix changed the title Refactor strepla and Optimize Test Suite TestFlightPhases Refactor strepla and Optimize Test Suite TestStrepla Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant