Skip to content

events() generator is generating str, not dict #585

@bo0ts

Description

@bo0ts

I was baffled by the following (on Python 2.7):

for ev in client.events():
    assert isinstance(ev, str), 'ev is not a string' # Does not trigger
    assert isinstance(ev, dict), 'ev is not a dict' # Does trigger

Is that as intended or am I right in assuming that this should actually be a dict?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions