Skip to content

Conversation

robin4a4
Copy link
Collaborator

@robin4a4 robin4a4 commented Nov 7, 2022

No description provided.

@functools.wraps(func)
def compile_func(parser, token):
name, *bits = token.split_contents()
def compile_func(parser, compose_token):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ça evite un warning de shadows name from outer scope, c'est pas grave dans ce cas la d'autant plus que tout est testé mais peut etre que pour une lib on veut éviter tous les soucis potentiels ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est préfèrable de garder token ici, et de renommer l'autre maybe_token

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

Successfully merging this pull request may close these issues.

2 participants