Skip to content

add missing constants #791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 25, 2016
Merged

add missing constants #791

merged 2 commits into from
Dec 25, 2016

Conversation

nduchastel-zz
Copy link

Adding new constants missing.
Was causing mypy errors since it did not know E_SSL_CONNECT_ERROR.
Based on comments from gregprice, I added all of them.
(BTW, found a small typo in 'INFILESIE_LARGE' (aka needs to be 'INFILESIZE_LARGE')

Copy link
Contributor

@ambv ambv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Thank you! Also fix the linter please (two spaces instead of one before the type comment).

FTP_SSL_CCC = ... # type: int
FTP_USE_EPRT = ... # type: int
FTP_USE_EPSV = ... # type: int
GLOBAL_ALL = ... # type: int
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is redefined from line 7. The tests complain about a few more. Make sure to ./runtests.sh locally.

@nduchastel-zz
Copy link
Author

Added the extra space.
Remove duplicates GLOBAL_...

@nduchastel-zz
Copy link
Author

it's been a while since I did pull requests... I think it is ready for acceptance and merging into master branch. Let me know if I need to do anything else.

@ambv ambv merged commit 79c3a40 into python:master Dec 25, 2016
@ambv
Copy link
Contributor

ambv commented Dec 25, 2016

Indeed. Happy holidays and thank you for your contribution!

hswong3i pushed a commit to alvistack/python-typeshed that referenced this pull request May 25, 2025
(The solution for 3.7.0 and 3.7.1 is a little funky, but those releases are dead anyways.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants