Skip to content

Add optional typed base classes for listener API #4568

Closed

Description

@pekkaklarck

Issue #4567 proposes adding a base class for the dynamic library API and having similar base classes for the listener API would be convenient as well. The usage would be something like this:

from robot.api.interfaces import ListenerV3

class Listener(ListenerV3):
    ...

The base class should have all available listener methods with documentation and appropriate type information. We should have base classes both for listener v2 and for v3 and they should have ROBOT_LISTENER_API_VERSION set accordingly.

Similarly as #4567, this would be easy to implement and could be done already in RF 6.1. We mainly need to agree on naming and where to import these base classes.

Activity

  1. added this to the v6.1 milestone on Dec 19, 2022
  2. changed the title [-]Add typed base classes (interfaces) for listener API[/-] [+]Add optional typed base classes for listener API[/+] on Jan 3, 2023
  3. self-assigned this
    on Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions