Skip to content

check cython super in comprehension errorΒ #8080

@gshmu

Description

@gshmu

Current problem

cython can't using super() in list comprehension, assign a variable will fix this.

Desired solution

broken

class Any:
    def func(self):
        return [_ for _ in super().func()]

fixed

class Any:
    def func(self):
        var = super().func()
        return [_ for _ in var]

please add feature to check the cython broken.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions