Skip to content

Decorators of async functions are not migrated by the migration tool #608

@gcbirzan-plutoflume

Description

@gcbirzan-plutoflume

Python Version

3.11.12

pytest Version

No response

Package Version

3.2.0

Description

The migrate command will not migrate decorators of asnyc functions, since the code only checks for ast.FunctionDef but not for ast.AsyncFunctionDef, here:

case ast.FunctionDef():
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions