From 2518ddac22ed2417c0d3cba3406ff523ace45b97 Mon Sep 17 00:00:00 2001 From: Jacob Bom Date: Wed, 19 Oct 2016 13:07:20 +0200 Subject: [PATCH] Update comtributing guide with explicit kwargs --- .github/CONTRIBUTING.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/CONTRIBUTING.rst b/.github/CONTRIBUTING.rst index c81a9b7af..0f6147d9b 100644 --- a/.github/CONTRIBUTING.rst +++ b/.github/CONTRIBUTING.rst @@ -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=''):