Annotate python method with debugger information

Answered

I am doing a big refactor and want to annotate the methods . In the debugger I can see the types. Is there a way to auto-annotate the methods using the debugger info?

 

0
3 comments
Avatar
Permanently deleted user

https://www.jetbrains.com/help/pycharm/using-docstrings-to-specify-types.html#d385740e125

Main thing is to turn on the "collect runtime information".  You might want to turn it off again, after you're done doing documentation.

0
Avatar
Permanently deleted user

How do I turn on "Collection runtime information"

 I can't seem to find that option.

 

 

Thanks

 

0
Avatar
Permanently deleted user

Did you read the docs I linked to?  It's in the Python Debugger section.

0

Please sign in to leave a comment.