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__)
Thanks for any help
The text was updated successfully, but these errors were encountered:
Hmm ok, having read #8, I suspect the answer to this is that it is impossible. If any maintainers/experts think otherwise though, I'd be interested to hear their thoughts.
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 exampleThanks for any help
The text was updated successfully, but these errors were encountered: