cls to self
This commit is contained in:
parent
a4c435c398
commit
6c84bab7d7
@ -25,7 +25,7 @@ class Trip(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_linked_landmarks(cls, landmarks: LinkedLandmarks, cache_client: Client) -> "Trip":
|
def from_linked_landmarks(self, landmarks: LinkedLandmarks, cache_client: Client) -> "Trip":
|
||||||
"""
|
"""
|
||||||
Initialize a new Trip object and ensure it is stored in the cache.
|
Initialize a new Trip object and ensure it is stored in the cache.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user