Skip to content

Commit 03d4c2f

Browse files
committed
fix: typing for python 3.9
1 parent 1a1162e commit 03d4c2f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extism/extism.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class Function:
240240
A host function.
241241
"""
242242

243-
def __init__(self, namespace: str | None, name: str, args, returns, f, *user_data):
243+
def __init__(self, namespace: Optional[str], name: str, args, returns, f, *user_data):
244244
self.namespace = namespace
245245
self.name = name
246246
self.args = [a.value for a in args]

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "extism"
44
version = "0.0.0+replaced-by-ci"
55
description = "Extism Host SDK for python"
66
readme = "README.md"
7-
requires-python = ">=3.11"
7+
requires-python = ">=3.9"
88
dependencies = ["extism-sys>=1.9.1"]
99

1010
[tool.poetry]
@@ -16,7 +16,7 @@ license = "BSD-3-Clause"
1616
readme = "README.md"
1717

1818
[tool.poetry.dependencies]
19-
python = "^3.8"
19+
python = "^3.9"
2020
cffi = "^1.10.0"
2121
extism-sys = { version = ">=1.9.1" }
2222
annotated-types = "^0.6.0"

0 commit comments

Comments
 (0)