how to get the method parameters type stubs?
PyCharm does generate the docstring stub with the type placeholders, but the placeholders aren't currently (using PyCharm 2022.1) populated from the __annotations__
with the types. This has been marked with the state "To be discussed" in the JetBrains bugtracker, see issues PY-23400 and PY-54930.
Inclusion of the type placeholders is configured by checking File
>
Settings
>
Editor
>
General
>
Smart Keys
>
Python
>
Insert type placeholders in the documentation comment stub
.
It's worth noting the insert docstring stub intention is selected on the function name itself

In this example with Napoleon style docstring format selected in File
>
Settings
>
Tools
>
Python Integrated Tools
>
Docstrings
, the result:
