You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.
A method with 'return' returns implicit None. There is no reason why a getter/setter should return anything at all - in particular why is should return 'self'. In addition: the typical getter/setter pattern of Java is pointless Python. Directly attribute assignment or access is what you want. If you need to massage a value upon get or set: use property()...but only if you really need it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The whole codebase contains tons of
lines.
This is completely unpythonic and they do not make any sense.
Just omit the 'return' statement completely..
The text was updated successfully, but these errors were encountered: