Skip to content

PEP 484: Add implicit promotions for Python 2.7 - #245

Merged
gvanrossum merged 1 commit into
python:masterfrom
JelleZijlstra:patch-5
Apr 24, 2017
Merged

gvanrossum merged 1 commit into
python:masterfrom
JelleZijlstra:patch-5

Conversation

@JelleZijlstra

Copy link
Copy Markdown
Member

This was discussed in python/typeshed#270 (comment). Both mypy and pytype behave as described already. We should document this behavior in the PEP to make sure people are aware of it and promote uniformity.

Mypy also implicitly promotes bytearray to bytes in both Python 2 and 3. Not sure if that's worth codifying in the PEP too.

@vlasovskikh Is this also OK for PyCharm?

This was discussed in python/typeshed#270 (comment). Both mypy and pytype behave as described already. We should document this behavior in the PEP to make sure people are aware of it and promote uniformity.

Mypy also implicitly promotes bytearray to bytes in both Python 2 and 3. Not sure if that's worth codifying in the PEP too.

@vlasovskikh Is this also OK for PyCharm?
@vlasovskikh

Copy link
Copy Markdown
Member

@JelleZijlstra +1

@JelleZijlstra
JelleZijlstra deleted the patch-5 branch April 26, 2017 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants