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

Duck Typing #31

Open
gustavowl opened this issue Nov 2, 2023 · 0 comments
Open

Duck Typing #31

gustavowl opened this issue Nov 2, 2023 · 0 comments

Comments

@gustavowl
Copy link
Collaborator

In Python, it is recommended to use duck typing rather than explicitly checking the object type.
There are some code segments where isinstance is used,
contradicting the duck typing principle.

Task:

  1. Identify code segments using isinstance.
  2. If possible, change the code segments to adhere to duck typing.
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

No branches or pull requests

1 participant