Skip to content

yield in lambdas mishandled #17

@pmp-p

Description

@pmp-p
echo 'type((lambda: (yield))())' | ~/.local/bin/f2format -s 
Traceback (most recent call last):
  File "/Users/user/.local/bin/f2format", line 8, in <module>
    sys.exit(main())
  File "<string>", line None
bpc_utils.parsing.BPCSyntaxError: source file '<unknown>' contains the following syntax errors:
[L1C14] SyntaxError: 'yield' outside function

Metadata

Metadata

Assignees

No one assigned

    Labels

    parsoRelated to `parso`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions