Skip to content

Update data.py to be compatible with example - #1213

Merged
jsmnbom merged 2 commits into
python-telegram-bot:masterfrom
reablaz:patch-1
Sep 26, 2018
Merged

Update data.py to be compatible with example#1213
jsmnbom merged 2 commits into
python-telegram-bot:masterfrom
reablaz:patch-1

Conversation

@reablaz

@reablaz reablaz commented Sep 8, 2018

Copy link
Copy Markdown
Contributor

for now, if you process personal_info with example code, then you got an error if there is no set option to get native fist and last name.

setting default value will allow to process personal_info without native name/surname transation

for now, if you process personal_info with example code, then you got an error if there is no set option to get native fist and last name.

setting default value will allow to process personal_info without native name/surname transation
@jsmnbom

jsmnbom commented Sep 12, 2018

Copy link
Copy Markdown
Member

Thanks a lot for the PR @reablaz. You are indeed correct that the native arguments should be optional.

It seems like you didn't quite set up the development environment as described in .github/CONTRIBUTING.rst. Most specifically the pre-commit-hook flake8, which is complaining that

telegram/passport/data.py:42:100: E501 line too long (105 > 99 characters)

Could we perhaps get you to fix that line? :D

@jsmnbom

jsmnbom commented Sep 21, 2018

Copy link
Copy Markdown
Member

You still with us @reablaz ? :D

i hope i understood right this. sorry for delay, just starting using github!
@reablaz

reablaz commented Sep 21, 2018

Copy link
Copy Markdown
Contributor Author

Hi there! I shortened this line, thank you for your pointing!

@reablaz

reablaz commented Sep 22, 2018

Copy link
Copy Markdown
Contributor Author

failed again.. can anyone teach me how to do things right? :D

@jsmnbom

jsmnbom commented Sep 25, 2018

Copy link
Copy Markdown
Member

Actually it seems the build failed for other reasons, so this looks good :D

Would you like to add yourself to AUTHORS.rst, please do so :) Otherwise just reply and we'll get this merged :D

@reablaz

reablaz commented Sep 26, 2018

Copy link
Copy Markdown
Contributor Author

Hey there!

I think my contribution is too trivial to add myself to authors list. So we can skip this step. Let's merge 👍

@jsmnbom

jsmnbom commented Sep 26, 2018

Copy link
Copy Markdown
Member

Alright, thanks once again :D

@jsmnbom
jsmnbom merged commit c714a17 into python-telegram-bot:master Sep 26, 2018
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants