Skip to content

Conversation

@erlend-aasland
Copy link
Contributor

@erlend-aaslanderlend-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-aaslanderlend-aasland enabled auto-merge (squash) August 17, 2023 17:50
@erlend-aaslanderlend-aasland merged commit 292a22b into python:mainAug 17, 2023
@erlend-aaslanderlend-aasland deleted the clinic/no-hasattr-classes-for-you branch August 17, 2023 18:38
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@erlend-aasland@AlexWaygood@bedevere-bot