Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/data/messages/r/return-in-init/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Sum:

def __init__(self, a, b): # [return-in-init]
return a + b
4 changes: 4 additions & 0 deletions doc/data/messages/r/return-in-init/good.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Sum:

def __init__(self, a, b):
Comment thread
Pierre-Sassoulas marked this conversation as resolved.
Outdated
self.result = a + b
1 change: 1 addition & 0 deletions doc/data/messages/r/return-in-init/related.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- `__init__ method documentation <https://docs.python.org/3/reference/datamodel.html#object.__init__>`_
โšก