Skip to content

Commit 2917887

Browse files
authored
Merge pull request #203 from auscompgeek/tunable-value-bound
magicbot: Bound tunable/feedback value types
2 parents 0e95649 + a888640 commit 2917887

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

magicbot/magic_tunable.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
from typing import Callable, Generic, Optional, TypeVar, overload
55

66
from ntcore import NetworkTableInstance, Value
7+
from ntcore.types import ValueT
78

89
T = TypeVar("T")
9-
V = TypeVar("V")
10+
V = TypeVar("V", bound=ValueT)
1011

1112

1213
class tunable(Generic[V]):

setup.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ classifiers =
1616
License :: OSI Approved :: BSD License
1717
Operating System :: OS Independent
1818
Programming Language :: Python :: 3 :: Only
19-
Programming Language :: Python :: 3.6
2019
Programming Language :: Python :: 3.7
2120
Programming Language :: Python :: 3.8
2221
Programming Language :: Python :: 3.9
2322
Programming Language :: Python :: 3.10
23+
Programming Language :: Python :: 3.11
2424
Topic :: Software Development
2525
Topic :: Scientific/Engineering
2626

@@ -29,11 +29,11 @@ zip_safe = False
2929
include_package_data = True
3030
packages = find:
3131
install_requires =
32-
pyntcore>=2023.0.0b4
33-
wpilib>=2023.0.0b4,<2024.0.0
32+
pyntcore>=2023.2.1.4
33+
wpilib>=2023.2.1,<2024
3434
setup_requires =
3535
setuptools_scm > 6
36-
python_requires = >=3.6
36+
python_requires = >=3.7
3737

3838
[options.package_data]
3939
magicbot = py.typed, magic_reset.pyi

0 commit comments

Comments
 (0)