Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Aug 17, 2023

'not hasattr(parent, "classes")' is always false, since 'parent' is an
instance of either the Module, Class, or Clinic classes, and all of
them has a "classes" attribute.

…e_and_class()

The hasattr(parent, "classes") check is unneeded, since 'parent' is an
instance of either the Module, Class, or Clinic classes, and all of
them has a "classes" attribute.
@erlend-aasland erlend-aasland enabled auto-merge (squash) August 17, 2023 17:50
@erlend-aasland erlend-aasland merged commit 292a22b into python:main Aug 17, 2023
@erlend-aasland erlend-aasland deleted the clinic/no-hasattr-classes-for-you branch August 17, 2023 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants