Skip to content

Def kw arg default value incorrect when negative #26

@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Anonymous

Looks like the lexer is passing over the sign for keyword args with a negative default value.

Template:
<%def name="test(x=-1)">
${x}
</%def>

Compiled:
def test(x=1):
return render_test(context.locals_(__locals),x)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions