Skip to content

Commit 6c6ca57

Browse files
committed
magicbot: Accept and discard tunable doc argument
1 parent 4dc5dde commit 6c6ca57

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

magicbot/magic_tunable.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import functools
22
import inspect
3+
import warnings
34
from typing import Generic, Optional, TypeVar
45

56
from networktables import NetworkTables
@@ -73,9 +74,12 @@ def __init__(
7374
default: V,
7475
*,
7576
writeDefault: bool = True,
76-
subtable: Optional[str] = None
77-
# , doc: Optional[str] = None
77+
subtable: Optional[str] = None,
78+
doc=None
7879
) -> None:
80+
if doc is not None:
81+
warnings.warn("tunable no longer uses the doc argument", stacklevel=2)
82+
7983
self._ntdefault = default
8084
self._ntsubtable = subtable
8185
self._ntwritedefault = writeDefault

0 commit comments

Comments
 (0)