mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-02-16 18:31:45 +01:00
Fix instances of empty strings in __init__ in example contributing code
This commit is contained in:
parent
232a0b0286
commit
651119fd69
1 changed files with 2 additions and 2 deletions
4
.github/CONTRIBUTING.rst
vendored
4
.github/CONTRIBUTING.rst
vendored
|
@ -184,11 +184,11 @@ break the API classes. For example:
|
|||
.. code-block:: python
|
||||
|
||||
# GOOD
|
||||
def __init__(self, id, name, last_name='', **kwargs):
|
||||
def __init__(self, id, name, last_name=None, **kwargs):
|
||||
self.last_name = last_name
|
||||
|
||||
# BAD
|
||||
def __init__(self, id, name, last_name=''):
|
||||
def __init__(self, id, name, last_name=None):
|
||||
self.last_name = last_name
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue