Skip to content

Conversation

@JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Feb 11, 2017

A previous PR led mypy to refuse to instantiate ChainMap, because it has unimplemented
abstract methods. This PR adds the abstract methods to the stub,
which is enough to persuade mypy to allow me to instantiate a
ChainMap.

to refuse to instantiate ChainMap, because it has unimplemented
abstract methods. This PR adds the abstract methods to the stub,
which is enough to persuade mypy to allow me to instantiate a
ChainMap.
JelleZijlstra added a commit to JelleZijlstra/mypy that referenced this pull request Feb 11, 2017
I didn't add detailed tests for these since there's little specific
to these classes in mypy's code. I can add more detailed tests
like those for defaultdict if that is preferred.

This PR depends on these two typeshed PRs:
- python/typeshed#929
- python/typeshed#928
@gvanrossum gvanrossum merged commit e80b25d into python:master Feb 11, 2017
JelleZijlstra added a commit to JelleZijlstra/mypy that referenced this pull request Feb 12, 2017
I didn't add detailed tests for these since there's little specific
to these classes in mypy's code. I can add more detailed tests
like those for defaultdict if that is preferred.

This PR depends on these two typeshed PRs:
- python/typeshed#929
- python/typeshed#928
@JelleZijlstra JelleZijlstra deleted the chainmapinstantiate branch May 4, 2017 03:49
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