Skip to content

Conversation

rchen152
Copy link
Collaborator

I found the signature here:
https://github.com/python/cpython/blob/6a16b18224fa98f6d192aa5014affeccc0376eb3/Modules/_codecsmodule.c#L729

google/pytype#348 was opened against
pytype about this method being missing.

@rchen152 rchen152 merged commit 5dc89fe into master Jun 27, 2019
@rchen152 rchen152 deleted the codecs branch June 27, 2019 03:29
@sproshev
Copy link
Contributor

sproshev commented Jul 1, 2019

@JelleZijlstra @rchen152 Why do we continue marking positional-only parameters with __ prefix if we have PEP 570 now?

@JelleZijlstra
Copy link
Member

Not all type checkers support the new syntax (indeed, Python 3.8 hasn't even been released yet). For mypy in particular, there were changes to the way typed-ast is used that mean mypy will likely never support PEP 570 syntax when run on Python <3.8.

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