Update comtributing guide with explicit kwargs

This commit is contained in:
Jacob Bom 2016-10-19 13:07:20 +02:00 committed by GitHub
parent 61fe438a8b
commit 2518ddac22

View file

@ -184,8 +184,8 @@ break the API classes. For example:
.. code-block:: python
# GOOD
def __init__(self, id, name, **kwargs):
self.last_name = kwargs.get('last_name', '')
def __init__(self, id, name, last_name='', **kwargs):
self.last_name = last_name
# BAD
def __init__(self, id, name, last_name=''):