mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-29 15:49:02 +01:00
Update comtributing guide with explicit kwargs
This commit is contained in:
parent
61fe438a8b
commit
2518ddac22
1 changed files with 2 additions and 2 deletions
4
.github/CONTRIBUTING.rst
vendored
4
.github/CONTRIBUTING.rst
vendored
|
@ -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=''):
|
||||
|
|
Loading…
Reference in a new issue