Skip to content

Commit

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


def print_python_version(): # [useless-return]
print(sys.version)
return None
5 changes: 5 additions & 0 deletions doc/data/messages/u/useless-return/good.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import sys


def print_python_version():
print(sys.version)

0 comments on commit 55704d8

Please sign in to comment.