modifications to accomodate numpy 2 #2656
Annotations
10 errors and 1 warning
|
pyright:
neuralprophet/components/future_regressors/neural_nets.py#L106
"x" is possibly unbound (reportPossiblyUnboundVariable)
|
|
pyright:
neuralprophet/components/future_regressors/neural_nets.py#L99
"items" is not a known attribute of "None" (reportOptionalMemberAccess)
|
|
pyright:
neuralprophet/components/future_regressors/neural_nets.py#L83
"__getitem__" method not defined on type "Module" (reportIndexIssue)
|
|
pyright:
neuralprophet/components/future_regressors/neural_nets.py#L60
"__getitem__" method not defined on type "Module" (reportIndexIssue)
|
|
pyright:
neuralprophet/components/future_regressors/neural_nets.py#L59
"__getitem__" method not defined on type "Module" (reportIndexIssue)
|
|
pyright:
neuralprophet/components/future_regressors/neural_nets.py#L56
Argument of type "Self@NeuralNetsFutureRegressors" cannot be assigned to parameter "target_model" of type "LightningModule" in function "interprete_model"
"NeuralNetsFutureRegressors*" is not assignable to "LightningModule" (reportArgumentType)
|
|
pyright:
neuralprophet/components/future_regressors/linear.py#L105
"f_r" is possibly unbound (reportPossiblyUnboundVariable)
|
|
pyright:
neuralprophet/components/future_regressors/linear.py#L87
Method "forward" overrides class "BaseComponent" in an incompatible manner
Positional parameter count mismatch; base method has 2, but override has 4
Parameter 2 name mismatch: base parameter is named "x", override parameter is named "inputs"
Return type mismatch: base method returns type "None", override returns type "Tensor"
"Tensor" is not assignable to "None" (reportIncompatibleMethodOverride)
|
|
pyright:
neuralprophet/components/future_regressors/linear.py#L75
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
|
pyright:
neuralprophet/__init__.py#L15
"utilities" is not a known attribute of module "pytorch_lightning" (reportAttributeAccessIssue)
|
|
pyright:
neuralprophet/uncertainty.py#L287
Expression value is unused (reportUnusedExpression)
|