default parameter problem
muahdib69 opened this issue · comments
If you add type hinting with default values, the doc string created is messed up:
def get_last(self, product: str = None):
"""get_last
:param None:
"""
if not product:
product = self._default_product
@muahdib69 Thx for reporting this.
This is a bug...
May be we should generate like followings?
def get_last(self, product: str = None):
"""get_last
:param product:
:type product: str
"""
Type hinting is very complex to parse by Vim script.
Please stay tuned...