If a method contains an attribute without an annotation among its attributes, the data type will be inherited from the previous one.
For example, this will actively occur for the *args and **kwargs attributes:
def foo(bar: str, *args, baz: bool=True, qux="quux", **kwargs):
"""
Foo method
"""
pass

Please note that the qux attribute also inherited the data type from the previous one
Expected behavior
I think it is obvious that the data type should not be inherited from the previous attribute.
I also think that for attributes like */** the default data type can be tuple and dict, respectively.
System (please complete the following information):
mkdocstrings-python: 1.7.0
- Python version: 3.11
- OS: Linux
If a method contains an attribute without an annotation among its attributes, the data type will be inherited from the previous one.
For example, this will actively occur for the *args and **kwargs attributes:
Please note that the qux attribute also inherited the data type from the previous one
Expected behavior
I think it is obvious that the data type should not be inherited from the previous attribute.
I also think that for attributes like */** the default data type can be tuple and dict, respectively.
System (please complete the following information):
mkdocstrings-python: 1.7.0