Skip to content

Commit

Permalink
Added missing-function-docstring message example (#6248)
Browse files Browse the repository at this point in the history
  • Loading branch information
matusvalo authored Apr 10, 2022
1 parent 1c060fb commit 9afac3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/data/messages/m/missing-function-docstring/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sys


def print_python_version(): # [missing-function-docstring]
print(sys.version)
6 changes: 6 additions & 0 deletions doc/data/messages/m/missing-function-docstring/good.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import sys


def print_python_version():
"""Function printing python version."""
print(sys.version)

0 comments on commit 9afac3d

Please sign in to comment.