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

Assignment 6a - Section 1.9 - Output type inconsistency #16

Open
G0rocks opened this issue Oct 28, 2024 · 0 comments
Open

Assignment 6a - Section 1.9 - Output type inconsistency #16

G0rocks opened this issue Oct 28, 2024 · 0 comments

Comments

@G0rocks
Copy link

G0rocks commented Oct 28, 2024

2 different instructions in the code, assuming it should be a np.ndarray object since that's not a comment, see photo at bottom.
To prevent this, follow best practice of only writing each information point once and only once.
Not how I've removed the object type from the lines in the comments for all other inputs as we can see the type in the function parameters. This way, if you decide to update a type you only have to update it in one place and if you forget to update the comment it's no problem since it's only written once.
image

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