-
-
Notifications
You must be signed in to change notification settings - Fork 29
[ENHANCEMENT] better Literal support #211
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestto-reviewneeds a review from another developerneeds a review from another developer
Description
Is your enhancement request related to a problem? Please describe.
when keyword has Literal as argument I would like to have value suggestions when writing test.
example:
Library:
from typing import Literal
def keyword_with_literals(arg1: Literal["v1", "v2"]):
passtest:
*** Settings ***
Library literals.py
*** Test Cases ***
Test
Keyword With Literals arg1=v1current suggestions are random strings:

Describe the solution you'd like
the list should only contain values from literal
Additional context
tested with:
> robot --version
Robot Framework 7.0 (Python 3.10.1 on win32)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestto-reviewneeds a review from another developerneeds a review from another developer
Type
Projects
Status
Done