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

solution #901

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

solution #901

wants to merge 2 commits into from

Conversation

DenysST
Copy link

@DenysST DenysST commented Jan 29, 2024

No description provided.

@DenysST DenysST closed this Jan 29, 2024
@DenysST DenysST deleted the develop branch January 29, 2024 11:28
@DenysST DenysST restored the develop branch January 29, 2024 11:28
@DenysST DenysST reopened this Jan 29, 2024

class Carnivore(Animal):
@staticmethod
def bite(animal: Herbivore) -> None:

Choose a reason for hiding this comment

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

type annotation here should not be Herbivore. If it will take only herbivores, we won't need the check in the next line

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.

2 participants