Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop PyCharm from populating docstrings?

If I add a docstring to a method using the triple-quote, as soon as I type a space after the triple-quote, PyCharm will populate the docstring with the parameters the method takes, and a return value, like so:

def fill_blank(self, direction):
    """ 
    :param direction: 
    :return:
    """ 

I've searched the PyCharm preferences for "docstring" and "stub" and turned off everything that shows up, even if it doesn't seem to pertain to this particular behavior; and I've googled high and low, but can't figure out how make it stop. Does anyone know how? (This is in PyCharm CE 3.4)

like image 213
shanusmagnus Avatar asked Aug 02 '14 19:08

shanusmagnus


1 Answers

You need to set the docstrings format to "Plain". It defaults to reStructuredText, which is giving you those hints.

The setting is found under Python Integrated Tools in your project settings.

  1. File > Settings
  2. Python Integrated Tools
  3. Docstring format

Screenshot

like image 109
Burhan Khalid Avatar answered Sep 28 '22 01:09

Burhan Khalid