Skip to content

container has attribute check not working #967

@JingBh

Description

@JingBh

def __hasitem__(self, key: str) -> bool:
return key in self._container

__hasitem__ is not really a thing. Use __contains__ instead. (Reference)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions