FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

PEP 484: Add implicit promotions for Python 2.7 by JelleZijlstra · Pull Request #245 · python/peps · GitHub

Repository navigation

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

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?

Copy link
Copy Markdown
Member

@JelleZijlstra +1

JelleZijlstra deleted the patch-5 branch April 26, 2017 05:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL