Improved and cleaned up imports

This commit is contained in:
Profitroll 2024-09-15 00:54:56 +02:00
parent 483aae38b3
commit c70982755d
10 changed files with 28 additions and 28 deletions

View File

@ -1,10 +1,10 @@
from datetime import datetime from datetime import datetime
from typing import Any, List, Mapping, Union from typing import Any, List, Mapping, Union
from pyrmv.classes.journey import Journey from ..classes.journey import Journey
from pyrmv.classes.message import Message from ..classes.message import Message
from pyrmv.classes.stop import Stop from ..classes.stop import Stop
from pyrmv.utility import ref_upgrade from ..utility import ref_upgrade
class LineArrival: class LineArrival:

View File

@ -1,7 +1,7 @@
from datetime import datetime, timedelta from datetime import datetime, timedelta
from typing import List, OrderedDict, Union from typing import List, OrderedDict, Union
from pyrmv.classes import ( from ..classes import (
BoardArrival, BoardArrival,
BoardDeparture, BoardDeparture,
Journey, Journey,
@ -10,7 +10,7 @@ from pyrmv.classes import (
StopTrip, StopTrip,
Trip, Trip,
) )
from pyrmv.enums import ( from ..enums import (
AffectedJourneyMode, AffectedJourneyMode,
AffectedJourneyStopMode, AffectedJourneyStopMode,
BoardArrivalType, BoardArrivalType,
@ -22,15 +22,15 @@ from pyrmv.enums import (
SearchMode, SearchMode,
SelectionMode, SelectionMode,
) )
from pyrmv.raw import board_arrival as raw_board_arrival from ..raw import board_arrival as raw_board_arrival
from pyrmv.raw import board_departure as raw_board_departure from ..raw import board_departure as raw_board_departure
from pyrmv.raw import him_search as raw_him_search from ..raw import him_search as raw_him_search
from pyrmv.raw import journey_detail as raw_journey_detail from ..raw import journey_detail as raw_journey_detail
from pyrmv.raw import stop_by_coords as raw_stop_by_coords from ..raw import stop_by_coords as raw_stop_by_coords
from pyrmv.raw import stop_by_name as raw_stop_by_name from ..raw import stop_by_name as raw_stop_by_name
from pyrmv.raw import trip_find as raw_trip_find from ..raw import trip_find as raw_trip_find
from pyrmv.raw import trip_recon as raw_trip_recon from ..raw import trip_recon as raw_trip_recon
from pyrmv.utility import find_exception from ..utility import find_exception
try: try:
from typing import Literal from typing import Literal

View File

@ -1,8 +1,8 @@
from typing import Any, List, Mapping, Union from typing import Any, List, Mapping, Union
from pyrmv.classes.message import Message from ..classes.message import Message
from pyrmv.classes.stop import Stop from ..classes.stop import Stop
from pyrmv.utility import ref_upgrade from ..utility import ref_upgrade
class Journey: class Journey:

View File

@ -3,9 +3,9 @@ from typing import Any, List, Mapping, Union
from isodate import Duration, parse_duration from isodate import Duration, parse_duration
from pyrmv.classes.gis import Gis from ..classes.gis import Gis
from pyrmv.classes.message import Message from ..classes.message import Message
from pyrmv.classes.stop import StopTrip from ..classes.stop import StopTrip
class Leg: class Leg:

View File

@ -3,7 +3,7 @@ from typing import Any, List, Mapping, Union
from isodate import Duration, parse_duration from isodate import Duration, parse_duration
from pyrmv.classes.stop import Stop from ..classes.stop import Stop
class Url: class Url:

View File

@ -1,6 +1,6 @@
from typing import Any, Mapping, Union from typing import Any, Mapping, Union
from pyrmv.enums.platform_type_type import PlatformTypeType from ..enums.platform_type_type import PlatformTypeType
class PlatformType: class PlatformType:

View File

@ -3,8 +3,8 @@ from typing import List, Union
from isodate import Duration, parse_duration from isodate import Duration, parse_duration
from pyrmv.classes.leg import Leg from ..classes.leg import Leg
from pyrmv.classes.stop import StopTrip from ..classes.stop import StopTrip
class Trip: class Trip:

View File

@ -3,7 +3,7 @@
from enum import Enum from enum import Enum
from pyrmv.const import PRODUCTS from ..const import PRODUCTS
class AutoName(Enum): class AutoName(Enum):

View File

@ -4,7 +4,7 @@ from typing import OrderedDict, Union
from requests import get from requests import get
from xmltodict import parse as xmlparse from xmltodict import parse as xmlparse
from pyrmv.utility import weekdays_bitmask from ..utility import weekdays_bitmask
try: try:
from typing import Literal from typing import Literal

View File

@ -1,4 +1,4 @@
from pyrmv.errors import ( from ..errors import (
ApiAuthError, ApiAuthError,
ApiFormatError, ApiFormatError,
ApiParamError, ApiParamError,