Open Darylgolden opened 2 years ago
@Darylgolden I would like to work on this issue.
@Darylgolden I would like to work on this issue.
Go ahead!
Hi @Darylgolden Can I get a list of all the files which have to be changed?
I would like to work on this issue
I would like to work on this issue
Hi @dhgoratela, unfortunately we don't have such a list. You can probably find many instances just looking through the files.
Did a quick run through of mypy --follow-imports=skip
, output here. Maybe mypy missed some stuff, but probably this is the full list of stuff that needs typing done.
Le me do that. Thanks @Davidy22 for the info!
Also I feel like this issue sort of overlaps with #52. If we're using tools to find files to fix up for #52, they'll catch the files that only have docstring types anyways.
Okay shall check that for more understanding
I think this issue can be closed right?
I think this issue can be closed right?
All the parameters are gone, but there are still return types and attribute types in docstrings.
The problem with return types is that the documentation doesn't seem to pick up on the return type hint, so I don't want to convert everything at the cost of ruining the docs.
The attribute types are doable I think.
Enhancement proposal
Currently, there are many instances of type hints being provided within docstrings - at Paragraph, for example. This has the disadvantage of not being able to be read by IDEs. Since we've standardized all new PRs to use in-code typings since a while back, the old ones should also be changed. A good example of properly implemented typings can be found here, for instance.
This is far too broad an issue to be resolved by a single PR, so I recommend fixing around one file per PR.
Additional comments