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

'array.array' has no attribute 'clear' · Issue #11008 · python/typeshed · GitHub

'array.array' has no attribute 'clear' #11008

Description

array.array inheriting from MutableSequence has some unintended consequences, such as below

import array

x = array.array("B")
x.clear()

At runtime array.array does not have .clear(). Is it meant to have a .clear() implemented? Right now at least it doesn't and the stubs give an incorrect definition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: false negativeType checkers do not report an error, but should

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL