Skip to content

ipaddress: make _BaseAddress subclass SupportsInt #1361

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 1 commit into from
May 26, 2017

Conversation

dwfreed
Copy link
Contributor

@dwfreed dwfreed commented May 26, 2017

This fixes the following mypy error:

error: Argument 1 to "int" has incompatible type "IPv4Address"; expected
"Union[SupportsInt, str, bytes]"

This fixes the following mypy error:

error: Argument 1 to "int" has incompatible type "IPv4Address"; expected
"Union[SupportsInt, str, bytes]"
@gvanrossum gvanrossum merged commit 56f3d66 into python:master May 26, 2017
@gvanrossum
Copy link
Member

Thanks!

@dwfreed dwfreed deleted the patch-1 branch May 26, 2017 22:24
tungol added a commit to tungol/typeshed that referenced this pull request Oct 10, 2024
added in 2017: python#1361

This use case no longer requires the protocol to be an actual base
class.
JelleZijlstra pushed a commit that referenced this pull request Oct 10, 2024
added in 2017: #1361

This use case no longer requires the protocol to be an actual base
class.
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.

2 participants