Skip to content

Commit 8ec7db4

Browse files
committed
Add type hints that work with python 3.9
1 parent aa2db41 commit 8ec7db4

6 files changed

Lines changed: 8 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies = [
1111
"attrs>=24.3.0",
1212
"numpy>=1.26.0; python_version < '3.13'",
1313
"numpy>=2.1.0; python_version >= '3.13'",
14+
"typing-extensions>=4.12.2",
1415
]
1516
readme = "README.md"
1617
classifiers = [

requirements-docs-locked.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ tomli==2.2.1 ; python_full_version < '3.11'
135135
tornado==6.4.2
136136
traitlets==5.14.3
137137
types-python-dateutil==2.9.0.20241206
138-
typing-extensions==4.12.2 ; python_full_version < '3.13'
138+
typing-extensions==4.12.2
139139
uri-template==1.3.0
140140
urllib3==2.3.0
141141
watchdog==6.0.0

requirements-incl-optional-locked.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ pillow==11.3.0
1919
pyparsing==3.2.3
2020
python-dateutil==2.9.0.post0
2121
six==1.17.0
22+
typing-extensions==4.12.2
2223
zipp==3.23.0 ; python_full_version < '3.10'

requirements-locked.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ attrs==25.3.0
44
numpy==2.0.2 ; python_full_version < '3.10'
55
numpy==2.2.6 ; python_full_version == '3.10.*'
66
numpy==2.3.2 ; python_full_version >= '3.11'
7+
typing-extensions==4.12.2

src/example_fgen_basic/runtime_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
from abc import ABC, abstractmethod
1010
from collections.abc import Iterable
1111
from functools import wraps
12-
from typing import Any, Callable, Concatenate, ParamSpec, TypeVar
12+
from typing import Any, Callable, TypeVar
1313

1414
import attrs
1515
from attrs import define, field
16+
from typing_extensions import Concatenate, ParamSpec
1617

1718
from example_fgen_basic.exceptions import NotInitialisedError, UnallocatedMemoryError
1819

uv.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)