Skip to content

typing_extensions.Literal does not work with Python 3.8 or 3.9 #5578

Description

@linh-eureka

Environment:
Python 3.8

My keyword:

    @keyword("Change Horizontal Scroll To")
    def change_horizontal_scroll_to(self, option: Literal[
        "Left edge", "Right edge", "Page left", "Page right", "Scroll left", "Scroll right"]):

The error in console:

[ ERROR ] Error in library 'automated_testing.testing_library.action_library.ActionLibV2': Adding keyword 'change_horizontal_scroll_to' failed: 'Literal' does not accept parameters, 'Literal[Left edge, Right edge, Page left, Page right, Scroll left, Scroll right]' has 6.

Investigations:

  • This issue happens from 7.0
  • 6.1.1 does not have this issue

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions