Skip to content

Commit

Permalink
refactor: rename types folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tbmc committed May 25, 2024
1 parent 1daaf9a commit 65033b6
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion calendar_connector/event_convertor.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from calendar_connector.event_utils.location import extract_event_location
from calendar_connector.event_utils.summary import extract_event_summary
from calendar_connector.normalize import normalize
from calendar_connector.types.event_type import EventType
from calendar_connector.requests_types.event_type import EventType


def event_to_calendar_event(
Expand Down
2 changes: 1 addition & 1 deletion calendar_connector/event_utils/date.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from icalendar import Event

from calendar_connector.consts import TIMEZONE
from calendar_connector.types.event_type import EventType
from calendar_connector.requests_types.event_type import EventType


def extract_event_dates(event_data: EventType, event: Event) -> None:
Expand Down
2 changes: 1 addition & 1 deletion calendar_connector/event_utils/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from calendar_connector.datetime_utils import get_formated_current_time
from calendar_connector.event_utils.score import extract_scores
from calendar_connector.cryptography import generate_hash
from calendar_connector.types.event_type import EventType
from calendar_connector.requests_types.event_type import EventType


@dataclasses.dataclass
Expand Down
2 changes: 1 addition & 1 deletion calendar_connector/event_utils/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from icalendar import Event

from calendar_connector.normalize import normalize
from calendar_connector.types.event_type import EventType
from calendar_connector.requests_types.event_type import EventType


def extract_event_location(event_data: Optional[EventType], event: Event) -> None:
Expand Down
2 changes: 1 addition & 1 deletion calendar_connector/event_utils/score.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Literal

from calendar_connector.types.event_type import EventType
from calendar_connector.requests_types.event_type import EventType


def _extract_scores_for_opponent(
Expand Down
2 changes: 1 addition & 1 deletion calendar_connector/event_utils/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from calendar_connector.consts import MY_PRESENCE
from calendar_connector.custom_exceptions import AttributeNotFoundException
from calendar_connector.normalize import normalize
from calendar_connector.types.event_type import EventType
from calendar_connector.requests_types.event_type import EventType


def _status_to_ics_status(sp_status: str) -> str:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import TypedDict, Any, Optional

from calendar_connector.types.season_type import SeasonType
from calendar_connector.types.shared_type import CountryType
from calendar_connector.requests_types.season_type import SeasonType
from calendar_connector.requests_types.shared_type import CountryType


class LocationType(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import TypedDict, Any, Optional

from calendar_connector.types.shared_type import AvatarType
from calendar_connector.requests_types.shared_type import AvatarType


class LinkType(TypedDict):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import TypedDict, Any, Optional

from calendar_connector.types.shared_type import (
from calendar_connector.requests_types.shared_type import (
CountryType,
LogoType,
SiteType,
Expand Down
8 changes: 4 additions & 4 deletions calendar_connector/sporteasy_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
url_csrf,
)
from calendar_connector.normalize import normalize
from calendar_connector.types.event_type import EventType
from calendar_connector.types.me_type import MeType
from calendar_connector.types.request_type import RequestType, CsrfType
from calendar_connector.types.team_type import TeamType
from calendar_connector.requests_types.event_type import EventType
from calendar_connector.requests_types.me_type import MeType
from calendar_connector.requests_types.request_type import RequestType, CsrfType
from calendar_connector.requests_types.team_type import TeamType

team_namedtuple = collections.namedtuple("team_namedtuple", ["id", "name", "web_url"])

Expand Down

0 comments on commit 65033b6

Please sign in to comment.