summaryrefslogtreecommitdiff
path: root/examples/natmod
diff options
context:
space:
mode:
Diffstat (limited to 'examples/natmod')
-rw-r--r--examples/natmod/btree/btree_py.py4
-rw-r--r--examples/natmod/features2/test.py2
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/natmod/btree/btree_py.py b/examples/natmod/btree/btree_py.py
index bd53c084a..461b045c9 100644
--- a/examples/natmod/btree/btree_py.py
+++ b/examples/natmod/btree/btree_py.py
@@ -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)
diff --git a/examples/natmod/features2/test.py b/examples/natmod/features2/test.py
index 5ac80120d..af79b9692 100644
--- a/examples/natmod/features2/test.py
+++ b/examples/natmod/features2/test.py
@@ -1,5 +1,7 @@
# This Python code will be merged with the C code in main.c
+# ruff: noqa: F821 - this file is evaluated with C-defined names in scope
+
import array