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
I have one problem: automodapi seems to ignore dataclass fields if they are initialized with the field method or annotated with a typing type:
fromdataclassesimportdataclassfromtypingimportOptional, List@dataclassclassMyClass:
"""description"""#: this is okok: int=0#: this does not get generatednotok: Optional[int] =None#: this does not get generated eitherfoo: List[int] =field(default_factory=list)
Is there a solution for this?
Thanks!
The text was updated successfully, but these errors were encountered:
* optional arguments
In #161 some additional parameters were added to
`NormalizationParameters`. This caused trouble in `NormalizerGSF`, which
assumed that all parameters/attributes in `NormalizationParameters`
have to be set.
For now, I added a exclude_check_change attribute
to mark the real optional arguments. Alternatively NormalizerGSF
could be set to look just for some specific parameters it needs.
* Sphinx docs:
Workaround for documentation of non default members. Necessary due to astropy/sphinx-automodapi#115
Hi, great package!
I have one problem: automodapi seems to ignore
dataclass
fields if they are initialized with thefield
method or annotated with atyping
type:Is there a solution for this?
Thanks!
The text was updated successfully, but these errors were encountered: