Skip to content

Wrong return type #2742

@msyyc

Description

@msyyc

For cadl-ranch case https://github.com/Azure/cadl-ranch/blob/96c1f90c6c3dd2facf74ccbd948585af35a4bdca/packages/cadl-ranch-specs/http/azure/core/model/main.tsp#L37, return type of generated SDK code is None:

def get(self, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements

It is not expected since in typespec the return type is not Void

Metadata

Metadata

Assignees

Labels

bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions