13
13
"get" ,
14
14
]
15
15
16
- from typing import Optional , Tuple
16
+ from typing import Any , Optional , Tuple
17
17
from typing import Union
18
18
import numpy as np
19
19
from numpy .typing import ArrayLike
@@ -111,14 +111,14 @@ def set(
111
111
112
112
def get (
113
113
self ,
114
- ** kwargs : dict
114
+ ** kwargs : Any
115
115
) -> object :
116
116
"""
117
117
Get the value of a decision variable.
118
118
119
119
Parameters
120
120
----------
121
- kwargs : dict
121
+ kwargs : Any
122
122
Additional keyword arguments.
123
123
124
124
Returns
@@ -139,7 +139,7 @@ def __init__(
139
139
value : Optional [object ] = None ,
140
140
bounds : Tuple [Optional [object ],Optional [object ]] = (None , None ),
141
141
strict : Optional [Tuple [Optional [object ],Optional [object ]]] = None ,
142
- ** kwargs : dict ,
142
+ ** kwargs : Any ,
143
143
) -> None :
144
144
"""
145
145
Constructor for the ``BoundedVariable`` class.
@@ -154,7 +154,7 @@ def __init__(
154
154
strict : tuple, None
155
155
Strict boundaries for the decision variable.
156
156
If ``None``, the value of ``bounds`` is copied to ``strict``.
157
- kwargs : dict
157
+ kwargs : Any
158
158
Additional keyword arguments for ``active`` and ``flag``.
159
159
"""
160
160
# call the Variable constructor
@@ -302,7 +302,7 @@ def __init__(
302
302
value : Optional [object ] = None ,
303
303
options : Optional [ArrayLike ] = None ,
304
304
all : Optional [ArrayLike ] = None ,
305
- ** kwargs : dict ,
305
+ ** kwargs : Any ,
306
306
) -> None :
307
307
"""
308
308
Constructor for the ``Choice`` class.
@@ -316,7 +316,7 @@ def __init__(
316
316
all : ArrayLike, None
317
317
A strict list of decision variable options from which to choose.
318
318
If ``None``, the value of ``options`` is copied to ``all``.
319
- kwargs : dict
319
+ kwargs : Any
320
320
Additional keyword arguments for ``active`` and ``flag``.
321
321
"""
322
322
# all super constructor
@@ -357,7 +357,7 @@ def _sample(
357
357
def get (
358
358
* args : Tuple [Union [Variable ,object ],...],
359
359
size : Optional [Union [tuple ,int ]] = None ,
360
- ** kwargs : dict
360
+ ** kwargs : Any
361
361
) -> Union [tuple ,object ,None ]:
362
362
"""
363
363
Get decision variable values from a tuple of ``Variable`` objects.
@@ -368,7 +368,7 @@ def get(
368
368
A tuple of ``Variable`` or ``object``s.
369
369
size : tuple, int, None
370
370
Size to reshape decision variables.
371
- kwargs : dict
371
+ kwargs : Any
372
372
Additional keyword arguments to pass to the ``get`` method of the
373
373
``Variable`` class when getting decision variable values.
374
374
0 commit comments