Skip to content

Commit 394b47d

Browse files
congwang-mkclaude
andcommitted
Relax Python requirement to >=3.8
Add missing from __future__ import annotations to _syscall_table.py which used dict[str, int] at runtime (3.10+ only). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent db29ced commit 394b47d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "sandlock"
77
version = "0.1.0"
88
description = "Lightweight process sandbox using Landlock, seccomp, and seccomp user notification"
9-
requires-python = ">=3.10"
9+
requires-python = ">=3.8"
1010
dependencies = ["tomli>=1.0; python_version < '3.11'"]
1111
license = {text = "Apache-2.0"}
1212
readme = "README.md"

src/sandlock/_syscall_table.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
To regenerate from headers:
99
grep -oP '#define __NR_(\w+)\s+(\d+)' /usr/include/.../unistd_64.h
1010
"""
11+
from __future__ import annotations
1112

1213
# fmt: off
1314

0 commit comments

Comments
 (0)