Open Leobouloc opened 1 year ago
That's a good improvement ! Until now, the application of Google convention for docstrings oriented us to have types in docstrings, but we can change in a future step the docstrings to fit with PEP484 soon applied in ralph
code
Feature Request
Current doctstrings might include an
Args
section where parameters have type information (eganumber (int): a number
). Since we aim to add type hints to all variables, this creates redundant information. For simplicity and maintanability, shouldn't we only use type hints for info relative to types ?We would have something like:
This post discusses this question: https://stackoverflow.com/questions/69322595/duplicate-information-in-typing-and-docstring