X Tutup
Skip to content

Commit 2518dda

Browse files
authored
Update comtributing guide with explicit kwargs
1 parent 61fe438 commit 2518dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ break the API classes. For example:
184184
.. code-block:: python
185185
186186
# GOOD
187-
def __init__(self, id, name, **kwargs):
188-
self.last_name = kwargs.get('last_name', '')
187+
def __init__(self, id, name, last_name='', **kwargs):
188+
self.last_name = last_name
189189
190190
# BAD
191191
def __init__(self, id, name, last_name=''):

0 commit comments

Comments
 (0)
X Tutup