Skip to content

Update pyflakes to version 2.2.0 #884

@Numerlor

Description

@Numerlor

The new version introduces support for assignment expressions (changelog).
Currently when lint is ran with the expression in the code, pyflakes will crash flake8.
Updating the version fixes this but a noqa ignore is still necessary because pycodestyle did not yet receive an update and does not recognize the new syntax with a colon.

The update will introduce these lint errors: https://paste.fuelrats.com/rotukasohe.txt
where F999s are f-strings with no expressions inside of them and the F821s referring to this method definition's literals in the calls inside the typehints

async def infraction_edit(
self,
ctx: Context,
infraction_id: t.Union[int, allowed_strings("l", "last", "recent")],
duration: t.Union[Expiry, allowed_strings("p", "permanent"), None],
*,
reason: str = None
) -> None:

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: dependenciesRelated to package dependencies and managementp: 2 - normalNormal Priority

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions