We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b733b8d commit bc85c9fCopy full SHA for bc85c9f
2 files changed
doc/data/messages/n/no-else-return/bad.py
@@ -0,0 +1,7 @@
1
+def compare_numbers(a: int, b: int) -> int:
2
+ if a == b: # [no-else-return]
3
+ return 0
4
+ elif a < b:
5
+ return -1
6
+ else:
7
+ return 1
doc/data/messages/n/no-else-return/good.py
@@ -0,0 +1,6 @@
+ if a == b:
+ if a < b:
0 commit comments