Hello sekitaka. I've forgotten it several times and googled it, so make a note of how to use Pycharm's local variable type input completion.
Input completion will be effective by specifying the type after type:
in the comment of the variable declaration (assignment).
s = None # type: str
You can use str
type input completion for the variable s
like this.
In addition, you can enable function input / output and various completions. Details can be found in the Official Documentation (https://www.jetbrains.com/help/pycharm/type-hinting-in-pycharm.html). I didn't quite get the word type hinting, so it took me a while to find this page.
Recommended Posts