Skip to content

Bug in ApiObject __repr__: KeyError: <class 'type'> #106

Closed
@d1618033

Description

@d1618033
/api_object.py", line 41, in __repr__
KeyError: <class 'type'>

The code:


    def __repr__(self):
        return f'<API:{self._data[type]}:{self._data[id]}>'

It seems like the fields type and id were supposed to be quoted?

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