diff --git a/src/pyrmv/classes/board.py b/src/pyrmv/classes/board.py index c3b69cc..85bf9fb 100644 --- a/src/pyrmv/classes/board.py +++ b/src/pyrmv/classes/board.py @@ -1,10 +1,10 @@ from datetime import datetime from typing import Any, List, Mapping, Union -from pyrmv.classes.journey import Journey -from pyrmv.classes.message import Message -from pyrmv.classes.stop import Stop -from pyrmv.utility import ref_upgrade +from ..classes.journey import Journey +from ..classes.message import Message +from ..classes.stop import Stop +from ..utility import ref_upgrade class LineArrival: diff --git a/src/pyrmv/classes/client.py b/src/pyrmv/classes/client.py index e9c9e72..d2b0889 100644 --- a/src/pyrmv/classes/client.py +++ b/src/pyrmv/classes/client.py @@ -1,7 +1,7 @@ from datetime import datetime, timedelta from typing import List, OrderedDict, Union -from pyrmv.classes import ( +from ..classes import ( BoardArrival, BoardDeparture, Journey, @@ -10,7 +10,7 @@ from pyrmv.classes import ( StopTrip, Trip, ) -from pyrmv.enums import ( +from ..enums import ( AffectedJourneyMode, AffectedJourneyStopMode, BoardArrivalType, @@ -22,15 +22,15 @@ from pyrmv.enums import ( SearchMode, SelectionMode, ) -from pyrmv.raw import board_arrival as raw_board_arrival -from pyrmv.raw import board_departure as raw_board_departure -from pyrmv.raw import him_search as raw_him_search -from pyrmv.raw import journey_detail as raw_journey_detail -from pyrmv.raw import stop_by_coords as raw_stop_by_coords -from pyrmv.raw import stop_by_name as raw_stop_by_name -from pyrmv.raw import trip_find as raw_trip_find -from pyrmv.raw import trip_recon as raw_trip_recon -from pyrmv.utility import find_exception +from ..raw import board_arrival as raw_board_arrival +from ..raw import board_departure as raw_board_departure +from ..raw import him_search as raw_him_search +from ..raw import journey_detail as raw_journey_detail +from ..raw import stop_by_coords as raw_stop_by_coords +from ..raw import stop_by_name as raw_stop_by_name +from ..raw import trip_find as raw_trip_find +from ..raw import trip_recon as raw_trip_recon +from ..utility import find_exception try: from typing import Literal diff --git a/src/pyrmv/classes/journey.py b/src/pyrmv/classes/journey.py index 45ea7e7..c9e5d0d 100644 --- a/src/pyrmv/classes/journey.py +++ b/src/pyrmv/classes/journey.py @@ -1,8 +1,8 @@ from typing import Any, List, Mapping, Union -from pyrmv.classes.message import Message -from pyrmv.classes.stop import Stop -from pyrmv.utility import ref_upgrade +from ..classes.message import Message +from ..classes.stop import Stop +from ..utility import ref_upgrade class Journey: diff --git a/src/pyrmv/classes/leg.py b/src/pyrmv/classes/leg.py index 968694a..c8b52aa 100644 --- a/src/pyrmv/classes/leg.py +++ b/src/pyrmv/classes/leg.py @@ -3,9 +3,9 @@ from typing import Any, List, Mapping, Union from isodate import Duration, parse_duration -from pyrmv.classes.gis import Gis -from pyrmv.classes.message import Message -from pyrmv.classes.stop import StopTrip +from ..classes.gis import Gis +from ..classes.message import Message +from ..classes.stop import StopTrip class Leg: diff --git a/src/pyrmv/classes/message.py b/src/pyrmv/classes/message.py index b08dfe5..e7eaa2c 100644 --- a/src/pyrmv/classes/message.py +++ b/src/pyrmv/classes/message.py @@ -3,7 +3,7 @@ from typing import Any, List, Mapping, Union from isodate import Duration, parse_duration -from pyrmv.classes.stop import Stop +from ..classes.stop import Stop class Url: diff --git a/src/pyrmv/classes/platform_type.py b/src/pyrmv/classes/platform_type.py index a1afe49..e3ae518 100644 --- a/src/pyrmv/classes/platform_type.py +++ b/src/pyrmv/classes/platform_type.py @@ -1,6 +1,6 @@ from typing import Any, Mapping, Union -from pyrmv.enums.platform_type_type import PlatformTypeType +from ..enums.platform_type_type import PlatformTypeType class PlatformType: diff --git a/src/pyrmv/classes/trip.py b/src/pyrmv/classes/trip.py index 9bab704..dd41494 100644 --- a/src/pyrmv/classes/trip.py +++ b/src/pyrmv/classes/trip.py @@ -3,8 +3,8 @@ from typing import List, Union from isodate import Duration, parse_duration -from pyrmv.classes.leg import Leg -from pyrmv.classes.stop import StopTrip +from ..classes.leg import Leg +from ..classes.stop import StopTrip class Trip: diff --git a/src/pyrmv/enums/auto_name.py b/src/pyrmv/enums/auto_name.py index d0c07cf..b7a552f 100644 --- a/src/pyrmv/enums/auto_name.py +++ b/src/pyrmv/enums/auto_name.py @@ -3,7 +3,7 @@ from enum import Enum -from pyrmv.const import PRODUCTS +from ..const import PRODUCTS class AutoName(Enum): diff --git a/src/pyrmv/raw/him_search.py b/src/pyrmv/raw/him_search.py index c8911cf..bd6a2c3 100644 --- a/src/pyrmv/raw/him_search.py +++ b/src/pyrmv/raw/him_search.py @@ -4,7 +4,7 @@ from typing import OrderedDict, Union from requests import get from xmltodict import parse as xmlparse -from pyrmv.utility import weekdays_bitmask +from ..utility import weekdays_bitmask try: from typing import Literal diff --git a/src/pyrmv/utility/find_exception.py b/src/pyrmv/utility/find_exception.py index eb18ae9..8917bd4 100644 --- a/src/pyrmv/utility/find_exception.py +++ b/src/pyrmv/utility/find_exception.py @@ -1,4 +1,4 @@ -from pyrmv.errors import ( +from ..errors import ( ApiAuthError, ApiFormatError, ApiParamError,