Skip to content

yield in lambdas mishandled #17

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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