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
TypedDict classes gets a griffe warning "Parameter does not appear in the function signature" when correctly including the parameters in the docstring. (Note: TypedDict's do not include an explicit def __init__() constructor)
To Reproduce
classMyTypedDict(TypedDict):
""" Parameters ---------- first_dict_key: str First dictionary key. second_dict_key: str Second dictionary key. """first_dict_key: strsecond_dict_key: str
Full traceback
$ mkdocs build --strictWARNING - griffe: src\aemo_databricks\sql\types.py:28: Parameter 'first_dict_key' does not appear in the function signatureWARNING - griffe: src\aemo_databricks\sql\types.py:28: Parameter 'second_dict_key' does not appear in the function signature
Expected behavior
These warnings should not be raised, since (unlike normal python classes) first_dict_key and second_dict_key are parameters for instantiating the class, not class attributes.
Additional context
I'm using --strict flag for cicd testing of my MkDocs documentation, my cicd pipeline is failing due to this warning.