Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowtion committed Jul 19, 2023
1 parent 13af927 commit 9db8f32
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from typing import Optional


class Cargo:
def __init__(self, weight: int) -> None:
self.weight = weight
Expand All @@ -8,7 +11,7 @@ def __init__(
self,
name: str,
weight: int,
coords: list[str] = None
coords: Optional[list[int]] = None
) -> None:
self.name = name
self.weight = weight
Expand All @@ -35,7 +38,7 @@ def __init__(
self,
name: str,
weight: int,
coords: list[str] = None
coords: Optional[list[int]] = None
) -> None:
coords = coords if coords else [0, 0, 0]
super().__init__(name, weight, coords)
Expand All @@ -54,7 +57,7 @@ def __init__(
weight: int,
max_load_weight: int,
current_load: int,
coords: list[str] = None
coords: Optional[list[int]] = None
) -> None:
super().__init__(name, weight, coords)
self.max_load_weight = max_load_weight
Expand Down

0 comments on commit 9db8f32

Please sign in to comment.