gh-104683: Argument Clinic: Remove unreachable code from _module_and_class() (#108092)

'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.
This commit is contained in:
Erlend E. Aasland 2023-08-17 20:16:08 +02:00 committed by GitHub
parent 80f30cf51b
commit 292a22bdc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2427,8 +2427,6 @@ impl_definition block
if child:
parent = module = child
continue
if not hasattr(parent, 'classes'):
return module, cls
child = parent.classes.get(field)
if not child:
fullname = ".".join(so_far)