Those are the Sphinx style doc strings.

Python has some strong opinions about doc strings, see PEP257.

Here is a full description of all of the doc string types in Python: What is the standard Python docstring format?

Answer from townie on Stack Overflow
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ using-docstrings-to-specify-types.html
Specify types with docstrings | PyCharm Documentation
September 1, 2025 - 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 โ€บ settings-tools-python-integrated-tools.html
Integrated Tools | PyCharm Documentation
July 19, 2026 - Use this page to configure requirements management file, default test runner, and documentation strings treatment ยท Package requirements file
Discussions

What style does PyCharm / IntelliJ use for Python docstrings? - Stack Overflow
7 What is the use of PyCharm's docstring template? How do I use it effectively? 9 How to enable python docstring insertion in 2016.1 Intellij IDEA/Python Community Edition 5.1.145.45 ยท 2 Default docstring format for Python in IntelliJ IDEA More on stackoverflow.com
๐ŸŒ stackoverflow.com
Change docstring style for a project's entire codebase
You can change the default style that is auto-generated by PyCharm. https://www.jetbrains.com/help/pycharm/settings-tools-python-integrated-tools.html To convert the existing docstrings you will need to use a tool like pyment https://stackoverflow.com/questions/44955366/simple-way-to-convert-python-docstrings-from-restructured-text-to-google-style More on reddit.com
๐ŸŒ r/pycharm
4
5
May 17, 2021
python - How can I auto-format a docstring in PyCharm? - Stack Overflow
I frequently have a situation where I'll write a paragraph in a docstring for a function, then come back later and want to add to some part of the middle of the paragraph, and that will make me hav... 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
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ creating-documentation-comments.html
Create documentation comments | PyCharm Documentation
August 14, 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 โ€บ type-syntax-for-docstrings.html
Legacy type syntax for docstrings | PyCharm Documentation
March 18, 2026 - 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.
๐ŸŒ
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 โ€บ documenting-source-code.html
Document source code | PyCharm Documentation
January 20, 2026 - In the Python files, PyCharm recognizes the documentation comments represented as Python docstrings. Before you start, make sure that the required docstring format is selected in the Integrated Tools page of the Settings dialog.
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ generating-reference-documentation.html
Generate reference documentation | PyCharm Documentation
August 4, 2025 - 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...
๐ŸŒ
Note.nkmk.me
note.nkmk.me โ€บ home โ€บ python
Python Docstring Formats (Styles) and Examples | note.nkmk.me
August 26, 2023 - sphinx.ext.napoleon โ€“ Support for NumPy and Google style docstrings โ€” Sphinx documentation ยท Some IDEs and editors provide type hints and error checking for these styles. For example, PyCharm, an integrated development environment for Python, supports all three styles.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ how can i configure the docstring format of pycharm rst?
r/learnpython on Reddit: How can I configure the docstring format of pycharm rst?
March 27, 2020 - As per the documentation of pycharm: Note that for reStructuredText it's possible to specify types in two formats: :param param_type param_nameโ€ฆ
๐ŸŒ
JetBrains
intellij-support.jetbrains.com โ€บ hc โ€บ en-us โ€บ community โ€บ posts โ€บ 115000784410-how-to-change-pycharm-default-commenting-style-for-function-
how to change pycharm default commenting style for function? โ€“ IDEs Support (IntelliJ Platform) | JetBrains
December 20, 2017 - when you type """"" under a function definition, you will see Pycharm automatically create a commenting style for you. ... """ validating the closure data in posteriori sense :param config_dict: :param states: :param closure: :return: """ I think it is ugly and want to change it to the style of Scikit-learn ( a python library). How? ... Hi Pswpeterpab! You can switch docstring style in Settings | Tools | Python Integrated Tools | Docstring format, you are looking for NumPy style I believe.
๐ŸŒ
JetBrains
jetbrains.com โ€บ help โ€บ pycharm โ€บ restructured-text.html
reStructuredText support | PyCharm Documentation
June 25, 2026 - In addition to the support for reStructuredText Docstring Format (PEP 287), PyCharm provides an editor for restructured text.