This...
class A(object):
class B(A):
def __init__(self):
pass
... throws "NameError: name 'A' is not defined".
Is there proper syntax to accomplish this, or must I use workarounds, like this?
class A(object):
pass
class _B(A):
pass
A.B = _B
The prior is strongly preferable. Thank you.