Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

union of string literals in tsp generate incorrect/duplicate type in docstring #2873

Open
swathipil opened this issue Oct 16, 2024 · 2 comments
Assignees

Comments

@swathipil
Copy link
Member

Generating the CodeFile model here results in the following docstring type:

:ivar language: Required. Is one of the following types: Literal["C"], Literal["C++"],
  Literal["C#"], Literal["Go"], Literal["Java"], Literal["JavaScript"], Literal["Kotlin"],
  Literal["Python"], Literal["Swagger"], Literal["Swift"], Literal["TypeSpec"]
:vartype language: str or str or str or str or str or str or str or str or str or str or str

I would expect that the vartype here specifies the Literals in the vartype, rather than "str or str or...".

@msyyc msyyc self-assigned this Oct 16, 2024
@msyyc
Copy link
Member

msyyc commented Oct 16, 2024

I will take an investigation asap.

@iscai-msft
Copy link
Contributor

Lmao this is a funny error, thanks for opening @swathipil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants