Improved and cleaned up imports
This commit is contained in:
parent
483aae38b3
commit
c70982755d
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
from enum import Enum
|
||||
|
||||
from pyrmv.const import PRODUCTS
|
||||
from ..const import PRODUCTS
|
||||
|
||||
|
||||
class AutoName(Enum):
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
from pyrmv.errors import (
|
||||
from ..errors import (
|
||||
ApiAuthError,
|
||||
ApiFormatError,
|
||||
ApiParamError,
|
||||
|
Loading…
Reference in New Issue
Block a user