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
Python uses the tokens (/) and (*) to separate positional and keyword arguments in a function signature.
It also uses the (*) and (**) tokens for unpacking iterables and dictionaries.
If the asterisk lands on a new line, this will trigger the colorization of this extension, even though it's not a comment.
Example with Better Comments:
Example without the extension:
The parameter names are comically long to force the formatter to place them on new lines.
The same goes for the unpacking operator in the case of a list, for example, also when it happens to land on a new line:
Example with Better Comments:
Example without the extension:
The text was updated successfully, but these errors were encountered:
Hi folks,
Python uses the tokens
(/)
and(*)
to separate positional and keyword arguments in a function signature.It also uses the
(*)
and(**)
tokens for unpacking iterables and dictionaries.If the asterisk lands on a new line, this will trigger the colorization of this extension, even though it's not a comment.
Example with Better Comments:
Example without the extension:
The parameter names are comically long to force the formatter to place them on new lines.
The same goes for the unpacking operator in the case of a list, for example, also when it happens to land on a new line:
Example with Better Comments:
Example without the extension:
The text was updated successfully, but these errors were encountered: