Browse Source
These files all use decorators (@asm_thumb, @asm_pio) that add names to the function scope, that the linter cannot see. It's useful to clear them in the file not in pyproject.toml as example code will be copied and adapted elsewhere, and those developers may also use Ruff (we hope!) Signed-off-by: Angus Gratton <angus@redyak.com.au>pull/12197/head
Angus Gratton
1 year ago
committed by
Damien George
13 changed files with 31 additions and 0 deletions
@ -1,3 +1,7 @@ |
|||
# Implemented in Python to support keyword arguments |
|||
|
|||
# ruff: noqa: F821 - this file is evaluated with C-defined names in scope |
|||
|
|||
|
|||
def open(stream, *, flags=0, cachesize=0, pagesize=0, minkeypage=0): |
|||
return _open(stream, flags, cachesize, pagesize, minkeypage) |
|||
|
Loading…
Reference in new issue