Skip to content

Handling of PEP 3107 (function annotation) #11

@Aluriak

Description

@Aluriak

Currently, this plugins seems to not recognize the following expression, made valid by PEP 3107:

def apply(func:callable) -> int:
    return f(0)

The -> token is highlighted in red, probably because detected as an error.
This token does not appear in tests/test.py nor syntax/python.vim.
Builtin callable is not highlighted.

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