Skip to content

Commit c40e378

Browse files
committed
use 3.11 compatible generics
1 parent 654f379 commit c40e378

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
26+
python-version: [ "3.11", "3.12", "3.13" ]
2727

2828
steps:
2929
- uses: actions/checkout@v4

memobj/utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
import struct
33
import operator
44
from enum import Enum
5-
from typing import Callable
5+
from typing import Callable, Generic, TypeVar
66

77

8-
class ValueWaiter[T]:
8+
# TODO: remove when dropping 3.11 support
9+
T = TypeVar("T")
10+
11+
12+
class ValueWaiter(Generic[T]):
913
def __init__(self, callback: Callable[[], T]):
1014
"""A utility class to wait for changes from a callable
1115

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
{name="StarrFox", email="[email protected]"}
88
]
99
license = "MIT"
10-
requires-python = ">=3.10"
10+
requires-python = ">=3.11"
1111
dependencies = [
1212
"iced-x86>=1.21.0",
1313
"pefile>=2024.8.26; sys_platform == 'win32'",

0 commit comments

Comments
 (0)