Closed rs2 closed 2 years ago
The following exception is raised when optimizing the following snippet:
def foo(): -> typing.Tuple: return ()
libcst._nodes.base.CSTValidationError: A zero-length tuple must be wrapped in parentheses.
It is incorrect to replace return () with return ,.
return ()
return ,
Thank you! Will fix it soon.
The following exception is raised when optimizing the following snippet:
libcst._nodes.base.CSTValidationError: A zero-length tuple must be wrapped in parentheses.
It is incorrect to replace
return ()
withreturn ,
.