Python

Python

Made by DeepSource

One-line docstring should fit on one line with quotes FLK-D200

Documentation
Minor
Autofix

If a docstring fits in a single line (72 characters according to PEP8), it is recommended to have the quotes on the same line.

Bad practice

def foo():
  """
  Runs bar and returns baz.
  """
  baz = bar()
  return baz

Recommended

def foo():
  """Runs bar and returns baz."""
  baz = bar()
  return baz