0

Lets say I have the code:

def blabla(num):

When I am doing triple "", I should receive:

def blabla(num):
    """
    param: num
    return:
    """

But I get:

def blabla(num):
    """
    
    """

Which means basically nothing, A week ago it was all good.
Searched sphinx style and others, nothing I changed at Pycharm helped.
Asked my teacher and he did not know how to fix it, told me to ask SOF ( This forum ).

Edit: I have tried going to Editor >> General >> Smart keys. But all are V in there... no other solution for it.

mzjn
  • 48,958
  • 13
  • 128
  • 248
  • 1
    What do you mean by "not showing up"? What exactly was good a week ago? I don't understand what the problem is. – mzjn May 25 '22 at 15:57
  • @mzjn Hi, by not showing up, as you can see, The expected ( first code ), the one I have is the second one. I dont see any parameters, return and such when I go docstring. By the sphinx way. –  May 25 '22 at 15:58
  • 1
    Sorry, but this is very unclear. "when I go docstring. By the sphinx way" - what does that mean? – mzjn May 25 '22 at 16:02
  • @mzjn Oh, the documention I wrote above at the post, is called sphinx documentation. but it doesnt matter. My point is, I should get a pattern docstring automatic when I am doing """""" , but I do not get anything. only what you see in the second code. –  May 25 '22 at 16:03
  • 1
    So this is a problem with how PyCharm behaves then? – mzjn May 25 '22 at 16:05
  • @mzjn Exactly. I think. –  May 25 '22 at 16:05
  • https://sphinx-rtd-tutorial.readthedocs.io/en/latest/docstrings.html Look here, I should receive like here. –  May 25 '22 at 16:05
  • Have you configured [this setting](https://stackoverflow.com/a/33497841) in the integrated tools? Without it PyCharm doesn't know what docstring style to generate. After typing the quotes twice `""` PyCharm should expand them to six `""""""` with the caret in the middle, if you press `Enter` there the docstring stub is inserted. – bad_coder May 25 '22 at 23:16

0 Answers0