From bffda5055d76844456d6743509be831161c8d12e Mon Sep 17 00:00:00 2001 From: Ashwin Date: Mon, 2 Jan 2023 11:09:55 -0800 Subject: [PATCH] refactoring/bug fixes and updated CHANGELOG.md --- CHANGELOG.md | 3 +-- ftc_api/{types.py => _types.py} | 0 .../get_v_2_0_season_alliances_event_code.py | 2 +- ..._2_0_season_alliances_event_code_selection.py | 2 +- .../api/awards/get_v2_0_season_awards_list.py | 2 +- .../awards/get_v_2_0_season_awards_event_code.py | 2 +- ...v_2_0_season_awards_event_code_team_number.py | 2 +- .../get_v_2_0_season_awards_team_number.py | 2 +- ftc_api/api/general/get_v2_0.py | 2 +- ftc_api/api/leagues/get_v2_0_season_leagues.py | 2 +- ...on_leagues_members_region_code_league_code.py | 2 +- ...n_leagues_rankings_region_code_league_code.py | 2 +- ..._season_scores_event_code_tournament_level.py | 2 +- .../get_v_2_0_season_rankings_event_code.py | 2 +- ...chedule_event_code_tournament_level_hybrid.py | 2 +- ftc_api/api/season_data/get_v2_0_season.py | 2 +- .../api/season_data/get_v2_0_season_events.py | 2 +- ftc_api/api/season_data/get_v2_0_season_teams.py | 2 +- ftc_api/ftc_stats.py | 16 ---------------- ftc_api/models/alliance.py | 2 +- ftc_api/models/alliance_selection.py | 2 +- ftc_api/models/alliance_selection_details.py | 2 +- ftc_api/models/api_information.py | 2 +- ftc_api/models/award.py | 2 +- ftc_api/models/award_assignment.py | 2 +- ftc_api/models/award_assignment_list.py | 2 +- ftc_api/models/award_list.py | 2 +- ftc_api/models/event.py | 2 +- ftc_api/models/event_list.py | 2 +- ftc_api/models/event_ranking_list.py | 2 +- .../freight_frenzy_alliance_score_breakdown.py | 2 +- .../freight_frenzy_alliance_score_details.py | 2 +- .../freight_frenzy_remote_score_breakdown.py | 2 +- .../freight_frenzy_single_team_score_details.py | 2 +- ftc_api/models/hybrid_schedule.py | 2 +- ftc_api/models/hybrid_schedule_match.py | 2 +- ftc_api/models/hybrid_schedule_team.py | 2 +- ftc_api/models/league.py | 2 +- ftc_api/models/league_list.py | 2 +- ftc_api/models/league_members.py | 2 +- ftc_api/models/match_result.py | 2 +- ftc_api/models/match_result_list.py | 2 +- ftc_api/models/match_result_team.py | 2 +- ftc_api/models/match_score_list.py | 2 +- .../power_play_alliance_score_breakdown.py | 2 +- .../models/power_play_alliance_score_details.py | 2 +- .../power_play_single_team_score_details.py | 2 +- ftc_api/models/scheduled_match.py | 2 +- ftc_api/models/scheduled_match_list.py | 2 +- ftc_api/models/scheduled_match_team.py | 2 +- ftc_api/models/season_summary.py | 2 +- ftc_api/models/selection.py | 2 +- .../models/sky_stone_alliance_score_details.py | 2 +- ftc_api/models/sky_stone_score_details.py | 2 +- .../models/summary_championship_description.py | 2 +- ftc_api/models/team.py | 2 +- ftc_api/models/team_list.py | 2 +- ftc_api/models/team_ranking.py | 2 +- .../ultimate_goal_alliance_score_breakdown.py | 2 +- .../ultimate_goal_alliance_score_details.py | 2 +- .../ultimate_goal_single_team_breakdown.py | 2 +- .../ultimate_goal_single_team_score_details.py | 2 +- 62 files changed, 60 insertions(+), 77 deletions(-) rename ftc_api/{types.py => _types.py} (100%) delete mode 100644 ftc_api/ftc_stats.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d480ec..5a447f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,5 +8,4 @@ ## 0.1.0 * Merged `Client` with `AuthenticatedClient` using `AuthenticatedClient` is now deprecated * Added support for creating a Client with a username and access key -* Removed `attrs` as a dependency -* Added support for [ftcstats](https://ftcstats.org) +* Various bug fixes and internal changes diff --git a/ftc_api/types.py b/ftc_api/_types.py similarity index 100% rename from ftc_api/types.py rename to ftc_api/_types.py diff --git a/ftc_api/api/alliance_selection/get_v_2_0_season_alliances_event_code.py b/ftc_api/api/alliance_selection/get_v_2_0_season_alliances_event_code.py index 1bdb2ea..09e4dd3 100644 --- a/ftc_api/api/alliance_selection/get_v_2_0_season_alliances_event_code.py +++ b/ftc_api/api/alliance_selection/get_v_2_0_season_alliances_event_code.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.alliance_selection import AllianceSelection -from ...types import Response +from ..._types import Response def _get_kwargs( diff --git a/ftc_api/api/alliance_selection/get_v_2_0_season_alliances_event_code_selection.py b/ftc_api/api/alliance_selection/get_v_2_0_season_alliances_event_code_selection.py index b6e4ff4..95be9f5 100644 --- a/ftc_api/api/alliance_selection/get_v_2_0_season_alliances_event_code_selection.py +++ b/ftc_api/api/alliance_selection/get_v_2_0_season_alliances_event_code_selection.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.alliance_selection_details import AllianceSelectionDetails -from ...types import Response +from ..._types import Response def _get_kwargs( diff --git a/ftc_api/api/awards/get_v2_0_season_awards_list.py b/ftc_api/api/awards/get_v2_0_season_awards_list.py index 7c88203..10d2395 100644 --- a/ftc_api/api/awards/get_v2_0_season_awards_list.py +++ b/ftc_api/api/awards/get_v2_0_season_awards_list.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.award_list import AwardList -from ...types import Response +from ..._types import Response def _get_kwargs( diff --git a/ftc_api/api/awards/get_v_2_0_season_awards_event_code.py b/ftc_api/api/awards/get_v_2_0_season_awards_event_code.py index 425444c..073f52c 100644 --- a/ftc_api/api/awards/get_v_2_0_season_awards_event_code.py +++ b/ftc_api/api/awards/get_v_2_0_season_awards_event_code.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.award_assignment_list import AwardAssignmentList -from ...types import UNSET, Response, Unset +from ..._types import UNSET, Response, Unset def _get_kwargs( diff --git a/ftc_api/api/awards/get_v_2_0_season_awards_event_code_team_number.py b/ftc_api/api/awards/get_v_2_0_season_awards_event_code_team_number.py index 23ca11b..6f80b83 100644 --- a/ftc_api/api/awards/get_v_2_0_season_awards_event_code_team_number.py +++ b/ftc_api/api/awards/get_v_2_0_season_awards_event_code_team_number.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.award_assignment_list import AwardAssignmentList -from ...types import Response +from ..._types import Response def _get_kwargs( diff --git a/ftc_api/api/awards/get_v_2_0_season_awards_team_number.py b/ftc_api/api/awards/get_v_2_0_season_awards_team_number.py index c3c7fdd..c74b847 100644 --- a/ftc_api/api/awards/get_v_2_0_season_awards_team_number.py +++ b/ftc_api/api/awards/get_v_2_0_season_awards_team_number.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.award_assignment_list import AwardAssignmentList -from ...types import UNSET, Response, Unset +from ..._types import UNSET, Response, Unset def _get_kwargs( diff --git a/ftc_api/api/general/get_v2_0.py b/ftc_api/api/general/get_v2_0.py index e04f41d..ea43553 100644 --- a/ftc_api/api/general/get_v2_0.py +++ b/ftc_api/api/general/get_v2_0.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.api_information import APIInformation -from ...types import Response +from ..._types import Response def _get_kwargs( diff --git a/ftc_api/api/leagues/get_v2_0_season_leagues.py b/ftc_api/api/leagues/get_v2_0_season_leagues.py index 7132778..08dbac3 100644 --- a/ftc_api/api/leagues/get_v2_0_season_leagues.py +++ b/ftc_api/api/leagues/get_v2_0_season_leagues.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.league_list import LeagueList -from ...types import UNSET, Response, Unset +from ..._types import UNSET, Response, Unset def _get_kwargs( diff --git a/ftc_api/api/leagues/get_v_2_0_season_leagues_members_region_code_league_code.py b/ftc_api/api/leagues/get_v_2_0_season_leagues_members_region_code_league_code.py index d80af5d..d48b6a2 100644 --- a/ftc_api/api/leagues/get_v_2_0_season_leagues_members_region_code_league_code.py +++ b/ftc_api/api/leagues/get_v_2_0_season_leagues_members_region_code_league_code.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.league_members import LeagueMembers -from ...types import Response +from ..._types import Response def _get_kwargs( diff --git a/ftc_api/api/leagues/get_v_2_0_season_leagues_rankings_region_code_league_code.py b/ftc_api/api/leagues/get_v_2_0_season_leagues_rankings_region_code_league_code.py index c85fbed..c568245 100644 --- a/ftc_api/api/leagues/get_v_2_0_season_leagues_rankings_region_code_league_code.py +++ b/ftc_api/api/leagues/get_v_2_0_season_leagues_rankings_region_code_league_code.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.event_ranking_list import EventRankingList -from ...types import Response +from ..._types import Response def _get_kwargs( diff --git a/ftc_api/api/match_results/get_v_2_0_season_scores_event_code_tournament_level.py b/ftc_api/api/match_results/get_v_2_0_season_scores_event_code_tournament_level.py index 0392d13..2b02449 100644 --- a/ftc_api/api/match_results/get_v_2_0_season_scores_event_code_tournament_level.py +++ b/ftc_api/api/match_results/get_v_2_0_season_scores_event_code_tournament_level.py @@ -9,7 +9,7 @@ GetV20SeasonScoresEventCodeTournamentLevelTournamentLevel, ) from ...models.match_score_list import MatchScoreList -from ...types import UNSET, Response, Unset +from ..._types import UNSET, Response, Unset def _get_kwargs( diff --git a/ftc_api/api/rankings/get_v_2_0_season_rankings_event_code.py b/ftc_api/api/rankings/get_v_2_0_season_rankings_event_code.py index edf3916..9fbf2cd 100644 --- a/ftc_api/api/rankings/get_v_2_0_season_rankings_event_code.py +++ b/ftc_api/api/rankings/get_v_2_0_season_rankings_event_code.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.event_ranking_list import EventRankingList -from ...types import UNSET, Response, Unset +from ..._types import UNSET, Response, Unset def _get_kwargs( diff --git a/ftc_api/api/schedule/get_v_2_0_season_schedule_event_code_tournament_level_hybrid.py b/ftc_api/api/schedule/get_v_2_0_season_schedule_event_code_tournament_level_hybrid.py index 657b3f8..1c93dcc 100644 --- a/ftc_api/api/schedule/get_v_2_0_season_schedule_event_code_tournament_level_hybrid.py +++ b/ftc_api/api/schedule/get_v_2_0_season_schedule_event_code_tournament_level_hybrid.py @@ -9,7 +9,7 @@ GetV20SeasonScheduleEventCodeTournamentLevelHybridTournamentLevel, ) from ...models.hybrid_schedule import HybridSchedule -from ...types import UNSET, Response, Unset +from ..._types import UNSET, Response, Unset def _get_kwargs( diff --git a/ftc_api/api/season_data/get_v2_0_season.py b/ftc_api/api/season_data/get_v2_0_season.py index d53bc36..8f5cad1 100644 --- a/ftc_api/api/season_data/get_v2_0_season.py +++ b/ftc_api/api/season_data/get_v2_0_season.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.season_summary import SeasonSummary -from ...types import Response +from ..._types import Response def _get_kwargs( diff --git a/ftc_api/api/season_data/get_v2_0_season_events.py b/ftc_api/api/season_data/get_v2_0_season_events.py index 44c3927..84334e7 100644 --- a/ftc_api/api/season_data/get_v2_0_season_events.py +++ b/ftc_api/api/season_data/get_v2_0_season_events.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.event_list import EventList -from ...types import UNSET, Response, Unset +from ..._types import UNSET, Response, Unset def _get_kwargs( diff --git a/ftc_api/api/season_data/get_v2_0_season_teams.py b/ftc_api/api/season_data/get_v2_0_season_teams.py index 8e9afa7..32a3324 100644 --- a/ftc_api/api/season_data/get_v2_0_season_teams.py +++ b/ftc_api/api/season_data/get_v2_0_season_teams.py @@ -6,7 +6,7 @@ from ... import errors from ...client import Client from ...models.team_list import TeamList -from ...types import UNSET, Response, Unset +from ..._types import UNSET, Response, Unset def _get_kwargs( diff --git a/ftc_api/ftc_stats.py b/ftc_api/ftc_stats.py deleted file mode 100644 index c9810c0..0000000 --- a/ftc_api/ftc_stats.py +++ /dev/null @@ -1,16 +0,0 @@ -"""Scraper for ftcstats.org""" -import httpx -from bs4 import BeautifulSoup - - -def get(year: int): - data = "" - with httpx.stream("GET", 'https://ftcstats.org/2023/index.html') as r: - for text in r.iter_text(): - print(text) - return data - - -soup = BeautifulSoup(get(2023), 'html.parser') -rankings_table = soup.find("table", id="opr") -print(rankings_table.format()) diff --git a/ftc_api/models/alliance.py b/ftc_api/models/alliance.py index 25098d6..375cc1d 100644 --- a/ftc_api/models/alliance.py +++ b/ftc_api/models/alliance.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="Alliance") diff --git a/ftc_api/models/alliance_selection.py b/ftc_api/models/alliance_selection.py index 9af92fa..e5b6266 100644 --- a/ftc_api/models/alliance_selection.py +++ b/ftc_api/models/alliance_selection.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.alliance import Alliance diff --git a/ftc_api/models/alliance_selection_details.py b/ftc_api/models/alliance_selection_details.py index df946d6..6087f96 100644 --- a/ftc_api/models/alliance_selection_details.py +++ b/ftc_api/models/alliance_selection_details.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.selection import Selection diff --git a/ftc_api/models/api_information.py b/ftc_api/models/api_information.py index 5536dbe..af1efbe 100644 --- a/ftc_api/models/api_information.py +++ b/ftc_api/models/api_information.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="APIInformation") diff --git a/ftc_api/models/award.py b/ftc_api/models/award.py index cc1cbe9..d7effdb 100644 --- a/ftc_api/models/award.py +++ b/ftc_api/models/award.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="Award") diff --git a/ftc_api/models/award_assignment.py b/ftc_api/models/award_assignment.py index 1c8d1f8..d7c320c 100644 --- a/ftc_api/models/award_assignment.py +++ b/ftc_api/models/award_assignment.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="AwardAssignment") diff --git a/ftc_api/models/award_assignment_list.py b/ftc_api/models/award_assignment_list.py index cb95a37..d4e86f4 100644 --- a/ftc_api/models/award_assignment_list.py +++ b/ftc_api/models/award_assignment_list.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.award_assignment import AwardAssignment diff --git a/ftc_api/models/award_list.py b/ftc_api/models/award_list.py index 7224ead..c2d5788 100644 --- a/ftc_api/models/award_list.py +++ b/ftc_api/models/award_list.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.award import Award diff --git a/ftc_api/models/event.py b/ftc_api/models/event.py index 346f58b..ef84546 100644 --- a/ftc_api/models/event.py +++ b/ftc_api/models/event.py @@ -4,7 +4,7 @@ import attr from dateutil.parser import isoparse -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="Event") diff --git a/ftc_api/models/event_list.py b/ftc_api/models/event_list.py index 0e316e2..166fbb2 100644 --- a/ftc_api/models/event_list.py +++ b/ftc_api/models/event_list.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.event import Event diff --git a/ftc_api/models/event_ranking_list.py b/ftc_api/models/event_ranking_list.py index 968ebc9..7c218f5 100644 --- a/ftc_api/models/event_ranking_list.py +++ b/ftc_api/models/event_ranking_list.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.team_ranking import TeamRanking diff --git a/ftc_api/models/freight_frenzy_alliance_score_breakdown.py b/ftc_api/models/freight_frenzy_alliance_score_breakdown.py index 694603e..67620fb 100644 --- a/ftc_api/models/freight_frenzy_alliance_score_breakdown.py +++ b/ftc_api/models/freight_frenzy_alliance_score_breakdown.py @@ -5,7 +5,7 @@ from ..models.auto_navigated_status import AutoNavigatedStatus from ..models.barcode_element import BarcodeElement from ..models.endgame_parked_status import EndgameParkedStatus -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="FreightFrenzyAllianceScoreBreakdown") diff --git a/ftc_api/models/freight_frenzy_alliance_score_details.py b/ftc_api/models/freight_frenzy_alliance_score_details.py index c7390be..82a2677 100644 --- a/ftc_api/models/freight_frenzy_alliance_score_details.py +++ b/ftc_api/models/freight_frenzy_alliance_score_details.py @@ -3,7 +3,7 @@ import attr from ..models.ftc_event_level import FTCEventLevel -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.freight_frenzy_alliance_score_breakdown import FreightFrenzyAllianceScoreBreakdown diff --git a/ftc_api/models/freight_frenzy_remote_score_breakdown.py b/ftc_api/models/freight_frenzy_remote_score_breakdown.py index 612bd8b..f420377 100644 --- a/ftc_api/models/freight_frenzy_remote_score_breakdown.py +++ b/ftc_api/models/freight_frenzy_remote_score_breakdown.py @@ -5,7 +5,7 @@ from ..models.auto_navigated_status import AutoNavigatedStatus from ..models.barcode_element import BarcodeElement from ..models.endgame_parked_status import EndgameParkedStatus -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="FreightFrenzyRemoteScoreBreakdown") diff --git a/ftc_api/models/freight_frenzy_single_team_score_details.py b/ftc_api/models/freight_frenzy_single_team_score_details.py index 9c77098..49e0e74 100644 --- a/ftc_api/models/freight_frenzy_single_team_score_details.py +++ b/ftc_api/models/freight_frenzy_single_team_score_details.py @@ -3,7 +3,7 @@ import attr from ..models.ftc_event_level import FTCEventLevel -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.freight_frenzy_remote_score_breakdown import FreightFrenzyRemoteScoreBreakdown diff --git a/ftc_api/models/hybrid_schedule.py b/ftc_api/models/hybrid_schedule.py index 8f1ae45..6886782 100644 --- a/ftc_api/models/hybrid_schedule.py +++ b/ftc_api/models/hybrid_schedule.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.hybrid_schedule_match import HybridScheduleMatch diff --git a/ftc_api/models/hybrid_schedule_match.py b/ftc_api/models/hybrid_schedule_match.py index 1c45e9b..d17eff7 100644 --- a/ftc_api/models/hybrid_schedule_match.py +++ b/ftc_api/models/hybrid_schedule_match.py @@ -4,7 +4,7 @@ import attr from dateutil.parser import isoparse -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.hybrid_schedule_team import HybridScheduleTeam diff --git a/ftc_api/models/hybrid_schedule_team.py b/ftc_api/models/hybrid_schedule_team.py index ca4f4d8..12e4991 100644 --- a/ftc_api/models/hybrid_schedule_team.py +++ b/ftc_api/models/hybrid_schedule_team.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="HybridScheduleTeam") diff --git a/ftc_api/models/league.py b/ftc_api/models/league.py index e73cfdc..63a0f68 100644 --- a/ftc_api/models/league.py +++ b/ftc_api/models/league.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="League") diff --git a/ftc_api/models/league_list.py b/ftc_api/models/league_list.py index 7a6e308..7b13170 100644 --- a/ftc_api/models/league_list.py +++ b/ftc_api/models/league_list.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.league import League diff --git a/ftc_api/models/league_members.py b/ftc_api/models/league_members.py index 835bff7..93ad430 100644 --- a/ftc_api/models/league_members.py +++ b/ftc_api/models/league_members.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="LeagueMembers") diff --git a/ftc_api/models/match_result.py b/ftc_api/models/match_result.py index 188313e..f708b77 100644 --- a/ftc_api/models/match_result.py +++ b/ftc_api/models/match_result.py @@ -4,7 +4,7 @@ import attr from dateutil.parser import isoparse -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.match_result_team import MatchResultTeam diff --git a/ftc_api/models/match_result_list.py b/ftc_api/models/match_result_list.py index 6ca6553..bd44349 100644 --- a/ftc_api/models/match_result_list.py +++ b/ftc_api/models/match_result_list.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.match_result import MatchResult diff --git a/ftc_api/models/match_result_team.py b/ftc_api/models/match_result_team.py index a0f5498..c1e109c 100644 --- a/ftc_api/models/match_result_team.py +++ b/ftc_api/models/match_result_team.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="MatchResultTeam") diff --git a/ftc_api/models/match_score_list.py b/ftc_api/models/match_score_list.py index 4fd076e..ab2500b 100644 --- a/ftc_api/models/match_score_list.py +++ b/ftc_api/models/match_score_list.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.freight_frenzy_alliance_score_details import FreightFrenzyAllianceScoreDetails diff --git a/ftc_api/models/power_play_alliance_score_breakdown.py b/ftc_api/models/power_play_alliance_score_breakdown.py index c1cc07b..1f79960 100644 --- a/ftc_api/models/power_play_alliance_score_breakdown.py +++ b/ftc_api/models/power_play_alliance_score_breakdown.py @@ -5,7 +5,7 @@ from ..models.auto_navigation import AutoNavigation from ..models.field_side import FieldSide from ..models.junction_element import JunctionElement -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="PowerPlayAllianceScoreBreakdown") diff --git a/ftc_api/models/power_play_alliance_score_details.py b/ftc_api/models/power_play_alliance_score_details.py index 5128b73..9c2233f 100644 --- a/ftc_api/models/power_play_alliance_score_details.py +++ b/ftc_api/models/power_play_alliance_score_details.py @@ -3,7 +3,7 @@ import attr from ..models.ftc_event_level import FTCEventLevel -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.power_play_alliance_score_breakdown import PowerPlayAllianceScoreBreakdown diff --git a/ftc_api/models/power_play_single_team_score_details.py b/ftc_api/models/power_play_single_team_score_details.py index 62e9257..c24b602 100644 --- a/ftc_api/models/power_play_single_team_score_details.py +++ b/ftc_api/models/power_play_single_team_score_details.py @@ -3,7 +3,7 @@ import attr from ..models.ftc_event_level import FTCEventLevel -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.power_play_remote_score_breakdown import PowerPlayRemoteScoreBreakdown diff --git a/ftc_api/models/scheduled_match.py b/ftc_api/models/scheduled_match.py index b95d08b..36669f7 100644 --- a/ftc_api/models/scheduled_match.py +++ b/ftc_api/models/scheduled_match.py @@ -4,7 +4,7 @@ import attr from dateutil.parser import isoparse -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.scheduled_match_team import ScheduledMatchTeam diff --git a/ftc_api/models/scheduled_match_list.py b/ftc_api/models/scheduled_match_list.py index fb88913..d6fc5ec 100644 --- a/ftc_api/models/scheduled_match_list.py +++ b/ftc_api/models/scheduled_match_list.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.scheduled_match import ScheduledMatch diff --git a/ftc_api/models/scheduled_match_team.py b/ftc_api/models/scheduled_match_team.py index 2222b99..61aea54 100644 --- a/ftc_api/models/scheduled_match_team.py +++ b/ftc_api/models/scheduled_match_team.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="ScheduledMatchTeam") diff --git a/ftc_api/models/season_summary.py b/ftc_api/models/season_summary.py index 57c57e4..c4bbc9e 100644 --- a/ftc_api/models/season_summary.py +++ b/ftc_api/models/season_summary.py @@ -4,7 +4,7 @@ import attr from dateutil.parser import isoparse -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.summary_championship_description import SummaryChampionshipDescription diff --git a/ftc_api/models/selection.py b/ftc_api/models/selection.py index f942d6f..8b73f6e 100644 --- a/ftc_api/models/selection.py +++ b/ftc_api/models/selection.py @@ -3,7 +3,7 @@ import attr from ..models.selection_result import SelectionResult -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="Selection") diff --git a/ftc_api/models/sky_stone_alliance_score_details.py b/ftc_api/models/sky_stone_alliance_score_details.py index fe54cd8..fe5330f 100644 --- a/ftc_api/models/sky_stone_alliance_score_details.py +++ b/ftc_api/models/sky_stone_alliance_score_details.py @@ -3,7 +3,7 @@ import attr from ..models.stone import Stone -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="SkyStoneAllianceScoreDetails") diff --git a/ftc_api/models/sky_stone_score_details.py b/ftc_api/models/sky_stone_score_details.py index c26c372..e39224b 100644 --- a/ftc_api/models/sky_stone_score_details.py +++ b/ftc_api/models/sky_stone_score_details.py @@ -3,7 +3,7 @@ import attr from ..models.ftc_event_level import FTCEventLevel -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.sky_stone_alliance_score_details import SkyStoneAllianceScoreDetails diff --git a/ftc_api/models/summary_championship_description.py b/ftc_api/models/summary_championship_description.py index d1fee15..2955577 100644 --- a/ftc_api/models/summary_championship_description.py +++ b/ftc_api/models/summary_championship_description.py @@ -4,7 +4,7 @@ import attr from dateutil.parser import isoparse -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="SummaryChampionshipDescription") diff --git a/ftc_api/models/team.py b/ftc_api/models/team.py index 20fb266..0f4a69b 100644 --- a/ftc_api/models/team.py +++ b/ftc_api/models/team.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="Team") diff --git a/ftc_api/models/team_list.py b/ftc_api/models/team_list.py index b598491..ec334a0 100644 --- a/ftc_api/models/team_list.py +++ b/ftc_api/models/team_list.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.team import Team diff --git a/ftc_api/models/team_ranking.py b/ftc_api/models/team_ranking.py index 3723614..b12b143 100644 --- a/ftc_api/models/team_ranking.py +++ b/ftc_api/models/team_ranking.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="TeamRanking") diff --git a/ftc_api/models/ultimate_goal_alliance_score_breakdown.py b/ftc_api/models/ultimate_goal_alliance_score_breakdown.py index e4f8e3d..ea9c0e4 100644 --- a/ftc_api/models/ultimate_goal_alliance_score_breakdown.py +++ b/ftc_api/models/ultimate_goal_alliance_score_breakdown.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="UltimateGoalAllianceScoreBreakdown") diff --git a/ftc_api/models/ultimate_goal_alliance_score_details.py b/ftc_api/models/ultimate_goal_alliance_score_details.py index 0f345af..1a448fa 100644 --- a/ftc_api/models/ultimate_goal_alliance_score_details.py +++ b/ftc_api/models/ultimate_goal_alliance_score_details.py @@ -3,7 +3,7 @@ import attr from ..models.ftc_event_level import FTCEventLevel -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.ultimate_goal_alliance_score_breakdown import UltimateGoalAllianceScoreBreakdown diff --git a/ftc_api/models/ultimate_goal_single_team_breakdown.py b/ftc_api/models/ultimate_goal_single_team_breakdown.py index 5e1cd74..706abf2 100644 --- a/ftc_api/models/ultimate_goal_single_team_breakdown.py +++ b/ftc_api/models/ultimate_goal_single_team_breakdown.py @@ -2,7 +2,7 @@ import attr -from ..types import UNSET, Unset +from .._types import UNSET, Unset T = TypeVar("T", bound="UltimateGoalSingleTeamBreakdown") diff --git a/ftc_api/models/ultimate_goal_single_team_score_details.py b/ftc_api/models/ultimate_goal_single_team_score_details.py index 4067988..9cd304b 100644 --- a/ftc_api/models/ultimate_goal_single_team_score_details.py +++ b/ftc_api/models/ultimate_goal_single_team_score_details.py @@ -3,7 +3,7 @@ import attr from ..models.ftc_event_level import FTCEventLevel -from ..types import UNSET, Unset +from .._types import UNSET, Unset if TYPE_CHECKING: from ..models.ultimate_goal_single_team_breakdown import UltimateGoalSingleTeamBreakdown