Skip to content

Conversation

@rowillia
Copy link
Contributor

The methods removed by #1816
are abstract in MutableSequence and therefore must be specified on Element.

The methods removed by python#1816
are abstract in `MutableSequence` and therefore must be specified on `Element`.
@JelleZijlstra
Copy link
Member

Looks good. Maybe we should put lines like Element() in the stubs to make sure classes are instantiable.

def set(self, key: _str_argument_type, value: _str_argument_type) -> None: ...
def __bool__(self) -> bool: ...
@overload
def __delitem__(self, i: int) -> None: ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need an overload? Looks like you can just use a union.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@JelleZijlstra JelleZijlstra merged commit a618ee3 into python:master Feb 27, 2018
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