Skip to content

fix: typing for python 3.9 #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.9'
cache: 'poetry'

- run: poetry install
Expand Down
2 changes: 1 addition & 1 deletion extism/extism.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class Function:
A host function.
"""

def __init__(self, namespace: str | None, name: str, args, returns, f, *user_data):
def __init__(self, namespace: Optional[str], name: str, args, returns, f, *user_data):
self.namespace = namespace
self.name = name
self.args = [a.value for a in args]
Expand Down
64 changes: 46 additions & 18 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = "extism"
version = "0.0.0+replaced-by-ci"
description = "Extism Host SDK for python"
readme = "README.md"
requires-python = ">=3.11"
requires-python = ">=3.9"
dependencies = ["extism-sys>=1.9.1"]

[tool.poetry]
Expand All @@ -16,17 +16,15 @@ license = "BSD-3-Clause"
readme = "README.md"

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

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
python = "^3.8"
black = "^23.1.0"
sphinx = { version = "^7.2.6", python = "^3.9" }

[tool.poetry.group.dev.dependencies]
sphinx-rtd-theme = { version = "^1.3.0", python = "^3.9" }
sphinx-autodoc-typehints = { version = "^1.24.0", python = "^3.9" }
mypy = "^1.5.1"
Expand Down