Skip to content

Conversation

@rchen152
Copy link
Collaborator

@rchen152 rchen152 commented Jan 5, 2018

  • Have Element inherit from MutableSequence, which is more precise than Sequence.
  • Remove unnecessary inherited methods (e.g., getitem).
  • Correct extend() to take an Iterable. (Sequence was too specific.)
  • Alphabetize the typing imports, for sanity.

@matthiaskramm matthiaskramm merged commit db6e2a6 into python:master Jan 5, 2018
@rchen152 rchen152 deleted the element branch January 5, 2018 04:22
rowillia pushed a commit to rowillia/typeshed that referenced this pull request Feb 27, 2018
The methods removed by python#1816
are abstract in `MutableSequence` and therefore must be specified on `Element`.
JelleZijlstra pushed a commit that referenced this pull request Feb 27, 2018
The methods removed by #1816
are abstract in `MutableSequence` and therefore must be specified on `Element`.
yedpodtrzitko pushed a commit to yedpodtrzitko/typeshed that referenced this pull request Jan 23, 2019
The methods removed by python#1816
are abstract in `MutableSequence` and therefore must be specified on `Element`.
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