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: |
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
noqaignore 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 theF821s referring to this method definition's literals in the calls inside the typehintsbot/bot/cogs/moderation/management.py
Lines 49 to 56 in b44caed