Have you checked Settings... - Tools - Python integrated tools - Docstring format? You can choose the parsing style.

You can choose from:

  • Plain
  • Epytext
  • reStructuredText
  • Numpy
  • Google
Answer from WesternGun on Stack Overflow
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ using-docstrings-to-specify-types.html
Specify types with docstrings | PyCharm Documentation
September 1, 2025 - PyCharm will generate a :return: and :rtype: section (or their equivalent in the selected docstring format). Place the caret at the function name, and press Alt+Enter. In the list of intention actions that opens, choose Specify return type in docstring. The reStructuredText is used for all the subsequent examples, but it is possible to use any of the supported formats of the documentation strings, whether it is plain text, Google or NumPy.
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ type-syntax-for-docstrings.html
Legacy type syntax for docstrings | PyCharm Documentation
3 weeks ago - Consider adding information about the expected parameter type. This information is specified using docstrings. You can use different docstrings depending on the selected docstring format, for example, :type, @type, or Args.
Discussions

Documenting Python parameters in docstring using PyCharm - Stack Overflow
Oddly enough, I found out that when the documentation is generated by typing """ then toggling auto-complete, PyCharm seems to recognize example 5. ... Have you checked Settings... - Tools - Python integrated tools - Docstring format? More on stackoverflow.com
๐ŸŒ stackoverflow.com
python - Custom PyCharm docstring stubs (i.e. for google docstring or numpydoc formats) - Stack Overflow
Does PyCharm 2.7 (or will PyCharm 3) have support for custom docstring and doctest stubs? If so, how does one go about writing this specific type of custom extension? My current project has More on stackoverflow.com
๐ŸŒ stackoverflow.com
python - How to auto-generate the type of a field in a docstring in PyCharm? - Stack Overflow
Similarly you can put the cursor in the function/method name and select Specify return type in docstring. ... Doesn't work with me. I only have ":return: :rtype:" added (after a restart of pycharm also) 2015-06-26T09:45:22.123Z+00:00 ... @FunkySayu then please provide an example, or consider ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
What style does PyCharm / IntelliJ use for Python docstrings? - Stack Overflow
I'm trying to understand the "solution ecosystem" with respect to creating docstrings, and then generating some nice reference documentation with PyCharm/IntelliJ. I'm used to the Google style More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ creating-documentation-comments.html
Create documentation comments | PyCharm Documentation
January 21, 2026 - In the Docstring format dropdown, select reStructuredText. Then type the opening triple double-quotes and press Enter or Space. PyCharm generates a documentation comment stub in reStructuredText format:
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ documenting-source-code.html
Document source code | PyCharm Documentation
January 20, 2026 - If this feature applies to a function, PyCharm generates tags, depending on the selected docstring format. For example, for reStructuredText: :param tags for each parameter declared in the function signature, and :return tag.
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ settings-tools-python-integrated-tools.html
Integrated Tools | PyCharm Documentation
January 21, 2026 - Use this page to configure requirements management file, default test runner, and documentation strings treatment ยท Package requirements file
๐ŸŒ
Medium
medium.com โ€บ @djnrrd โ€บ automatic-documentation-with-pycharm-70d37927df57
Automatic Documentation with PyCharm | by DJ Nrrd | Medium
April 21, 2020 - In the Docstrings section, set the Docstring format to โ€˜reStructuredTextโ€™ and make sure โ€˜Analyze Python code in doctringsโ€™ is selected. If you type the triple quotes to start your docstring and then press Enter, PyCharm will automatically provide a number of relevant sphinx Info Fields ...
Find elsewhere
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ generating-reference-documentation.html
Generate reference documentation | PyCharm Documentation
August 4, 2025 - PyCharm helps produce the formatted API documentation, using the following documentation generators: ... The documentation generators should be properly installed on your machine. For more information, refer to their respective download and installation pages. PyCharm recognizes the docstring format and uses the documentation source directory defined in the Integrated Tools page of the Settings dialog.
๐ŸŒ
Quora
quora.com โ€บ How-do-you-write-a-docstring-in-PyCharm
How to write a docstring in PyCharm - Quora
Answer: PyCharm is just an editor l! Docstrings are a feature of Python so to write a doc string you apply the following rules : * Doc strings immediately follow the start of a module, class or method - in the case of a class or method they should be the next thing after the class or def state...
๐ŸŒ
Python
peps.python.org โ€บ pep-0257
PEP 257 โ€“ Docstring Conventions | peps.python.org
The docstring in this example contains two newline characters and is therefore 3 lines long.
๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ docstrings-python
Python Docstrings Tutorial : Examples & Format for Pydoc, Numpy, Sphinx Doc Strings | DataCamp
February 14, 2025 - Learn about Python Docstrings. Find different examples & format types of docstrings for Sphinx, Numpy and Pydoc.
๐ŸŒ
Note.nkmk.me
note.nkmk.me โ€บ home โ€บ python
Python Docstring Formats (Styles) and Examples | note.nkmk.me
August 26, 2023 - Specify types with docstrings | PyCharm Documentation ... def func_rest(param1, param2): """Summary line. :param param1: Description of param1 :type param1: int :param param2: Description of param2 :type param2: str :returns: Description of ...
๐ŸŒ
JetBrains
jetbrains.com โ€บ pycharm โ€บ guide โ€บ tutorials โ€บ sphinx_sites โ€บ documentation
Documenting Code - PyCharm Guide
February 17, 2023 - class MyDemo: """ A *great* demo """ def __init__(self, name): self.name = name def hello(self, greeting: str) -> str: """ The canonical hello world example. A *longer* description with some **RST**. Args: name: The person to say hello to. Returns: str: The greeting """ return f"{greeting} {self.name}" Python docstrings are reStructuredText, but don't have any conventions about the structure.