Skip to content

Decorated functions lead to error #144

@holtgrewe

Description

@holtgrewe
import contextlib

@contextlib.contextmanager
def some_helper():
    pass

produces

snakefmt.exceptions.InvalidPython: Got error:

Cannot parse: 41:1: @

while formatting code with black.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions