''' route.py
  This module provide an implementation of a Route class with operations
  that work on creating, and storing route information.
'''

# Prior Version using @datclass but this requires 3.7+ which is not by default in the
# VM so I changed it to use a normal class definition.

#from dataclasses import dataclass

# @dataclass  # @dataclass only avaliable in Python 3.7+
# class Route:
#    '''
#      A Route class contains information about a propsed route
#      for a flight
#    '''
#    from_city: str
#    to_city: str
#    fare: float

#   def __str__(self):
#       return f'From:{self.from_city} To:{self.to_city} -> Lowest Price: ${self.fare:.2f}'


class Route:
    ''' 
      A Route class contains information about a propsed route 
      for a flight
    '''

    def __init__(self, from_city, to_city, fare):
        self.from_city = from_city
        self.to_city = to_city
        self.fare = fare

    def __str__(self):
        return f'From:{self.from_city} To:{self.to_city} -> Lowest Price: ${self.fare:.2f}'

cfb406cd8f86c6127ff80930a3ca36a7f14873c3
<mask token>


class Route:
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Route:
    <mask token>
    <mask token>

    def __str__(self):
        return (
            f'From:{self.from_city} To:{self.to_city} -> Lowest Price: ${self.fare:.2f}'
            )

<mask token>


class Route:
    <mask token>

    def __init__(self, from_city, to_city, fare):
        self.from_city = from_city
        self.to_city = to_city
        self.fare = fare

    def __str__(self):
        return (
            f'From:{self.from_city} To:{self.to_city} -> Lowest Price: ${self.fare:.2f}'
            )

<mask token>


class Route:
    """ 
      A Route class contains information about a propsed route 
      for a flight
    """

    def __init__(self, from_city, to_city, fare):
        self.from_city = from_city
        self.to_city = to_city
        self.fare = fare

    def __str__(self):
        return (
            f'From:{self.from_city} To:{self.to_city} -> Lowest Price: ${self.fare:.2f}'
            )

''' route.py
  This module provide an implementation of a Route class with operations
  that work on creating, and storing route information.
'''

# Prior Version using @datclass but this requires 3.7+ which is not by default in the
# VM so I changed it to use a normal class definition.

#from dataclasses import dataclass

# @dataclass  # @dataclass only avaliable in Python 3.7+
# class Route:
#    '''
#      A Route class contains information about a propsed route
#      for a flight
#    '''
#    from_city: str
#    to_city: str
#    fare: float

#   def __str__(self):
#       return f'From:{self.from_city} To:{self.to_city} -> Lowest Price: ${self.fare:.2f}'


class Route:
    ''' 
      A Route class contains information about a propsed route 
      for a flight
    '''

    def __init__(self, from_city, to_city, fare):
        self.from_city = from_city
        self.to_city = to_city
        self.fare = fare

    def __str__(self):
        return f'From:{self.from_city} To:{self.to_city} -> Lowest Price: ${self.fare:.2f}'
