Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #1213

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Develop #1213

wants to merge 4 commits into from

Conversation

watergor
Copy link

No description provided.

app/main.py Outdated
# write your code here

class BaseRobot:
def __init__(self, name: str, weight: int, coords: list = None) -> None:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def __init__(self, name: str, weight: int, coords: list = None) -> None:
def __init__(self, name: str, weight: int, coords: list[int] = None) -> None:

app/main.py Outdated


class FlyingRobot(BaseRobot):
def __init__(self, name: str, weight: int, coords: list = None) -> None:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def __init__(self, name: str, weight: int, coords: list = None) -> None:
def __init__(self, name: str, weight: int, coords: list[int] = None) -> None:

app/main.py Outdated
def __init__(self, name: str, weight: int, coords: list = None) -> None:
self.name = name
self.weight = weight
if coords:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if coords:
self.coords = coords or [0, 0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants