We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dc5dde commit 6c6ca57Copy full SHA for 6c6ca57
magicbot/magic_tunable.py
@@ -1,5 +1,6 @@
1
import functools
2
import inspect
3
+import warnings
4
from typing import Generic, Optional, TypeVar
5
6
from networktables import NetworkTables
@@ -73,9 +74,12 @@ def __init__(
73
74
default: V,
75
*,
76
writeDefault: bool = True,
- subtable: Optional[str] = None
77
- # , doc: Optional[str] = None
+ subtable: Optional[str] = None,
78
+ doc=None
79
) -> None:
80
+ if doc is not None:
81
+ warnings.warn("tunable no longer uses the doc argument", stacklevel=2)
82
+
83
self._ntdefault = default
84
self._ntsubtable = subtable
85
self._ntwritedefault = writeDefault
0 commit comments