Skip to content

Update CallbackResult type to match local vs. non-local Python events #55

@tzanko-matev

Description

@tzanko-matev

According to Python's documentation some event types can be disabled and some cannot. But our current Tracer trait has the same return type for all events: CallbackResult. This means that according to our API all events can be disabled. That will lead to runtime errors for an implementation which doesn't conform to the Python docs.

https://docs.python.org/3/library/sys.monitoring.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions