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
Hi there, I might have missed something. If I have my apologies.
My question is pretty basic: is there a way to add a docstring to class created with make_class? For example
fromattrsimportdefine@defineclassD:
""" Docstring """# Prints out the docstring aboveprint(D.__doc__)
C=make_class("C", ["a", "b"])
# Prints None, which makes it seem like the docstring is unset.# Is there a way to have the docstring be set when a class is created# via `make_class`?print(C.__doc__)