You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The x: bool: int is a SyntaxError.
In this situation, there are various ways to handle it:
Reject the function type comment. Preferably, output an explanation for the rejection.
If the function comment and the parameter annotation are the same, leave the parameter as is.
In any event, you will have to examine the syntax tree for the function def and find the parameter annotations.
If the function comment uses an ellipsis, then this does not apply; only the return type annotation is added.
The text was updated successfully, but these errors were encountered:
Bug Report:
Example program:
Result of com2ann:
The
x: bool: int
is a SyntaxError.In this situation, there are various ways to handle it:
In any event, you will have to examine the syntax tree for the function def and find the parameter annotations.
If the function comment uses an ellipsis, then this does not apply; only the return type annotation is added.
The text was updated successfully, but these errors were encountered: