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
{{ message }}
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
When parsing a @dataclass, DocumentationGenerator.generate fails with AttributeError: module 'mantisshrimp.core.bbox' has no attribute '__create_fn__' (full stack trace at the bottom).
What happens is that the __init__ representation from dataclasses is different than for normal classes.
If I understood the problem correctly, get_class_from_method is trying to get the name of the class from the representation, but the name of the class is not present in the dataclass __init__.
I see what you mean, the code to know if an object is a function or a method is quite brittle. Basically, if this check wasn't needed the problem would go away. I'm not sure what is the correct solution for this.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When parsing a
@dataclass
,DocumentationGenerator.generate
fails withAttributeError: module 'mantisshrimp.core.bbox' has no attribute '__create_fn__'
(full stack trace at the bottom).What happens is that the
__init__
representation from dataclasses is different than for normal classes.For normal classes we have:
While for dataclasses:
If I understood the problem correctly,
get_class_from_method
is trying to get the name of the class from the representation, but the name of the class is not present in the dataclass__init__
.The text was updated successfully, but these errors were encountered: