TYP: Inline typing annotations #5
Annotations
10 errors and 1 warning
|
type-check:
benchmarks/benchmarks.py#L26
Object of type "None" cannot be used as iterable value (reportOptionalIterable)
|
|
type-check:
benchmarks/benchmarks.py#L27
Object of type "None" cannot be used as iterable value (reportOptionalIterable)
|
|
type-check:
benchmarks/benchmarks.py#L31
No overloads for "npv" match the provided arguments (reportCallIssue)
|
|
type-check:
benchmarks/benchmarks.py#L31
Argument of type "Unknown | None" cannot be assigned to parameter "rate" of type "_ArrayLike" in function "npv"
Type "Unknown | None" is not assignable to type "_ArrayLike"
Type "None" is not assignable to type "_ArrayLike"
"None" is incompatible with protocol "_Buffer"
"__buffer__" is not present
"None" is incompatible with protocol "_SupportsArray[dtype[Any]]"
"__array__" is not present
"None" is incompatible with protocol "_NestedSequence[_SupportsArray[dtype[Any]]]"
"__len__" is not present
... (reportArgumentType)
|
|
type-check:
benchmarks/benchmarks.py#L31
Argument of type "NDArray[float64] | None" cannot be assigned to parameter "values" of type "_ArrayLike" in function "npv"
Type "NDArray[float64] | None" is not assignable to type "_ArrayLike"
Type "None" is not assignable to type "_ArrayLike"
"None" is incompatible with protocol "_Buffer"
"__buffer__" is not present
"None" is incompatible with protocol "_SupportsArray[dtype[Any]]"
"__array__" is not present
"None" is incompatible with protocol "_NestedSequence[_SupportsArray[dtype[Any]]]"
"__len__" is not present
... (reportArgumentType)
|
|
type-check:
numpy_financial/tests/test_financial.py#L97
Argument of type "Decimal" cannot be assigned to parameter "when" of type "_When" in function "rate"
Type "Decimal" is not assignable to type "_When"
"Decimal" is not assignable to "str"
"Decimal" is not assignable to "int"
"Decimal" is not assignable to "ndarray[_Shape, dtype[Any]]"
"Decimal" is incompatible with protocol "Iterable[str | int]"
"__iter__" is not present (reportArgumentType)
|
|
type-check:
numpy_financial/tests/test_financial.py#L120
Argument of type "Decimal" cannot be assigned to parameter "when" of type "_When" in function "rate"
Type "Decimal" is not assignable to type "_When"
"Decimal" is not assignable to "str"
"Decimal" is not assignable to "int"
"Decimal" is not assignable to "ndarray[_Shape, dtype[Any]]"
"Decimal" is incompatible with protocol "Iterable[str | int]"
"__iter__" is not present (reportArgumentType)
|
|
type-check:
numpy_financial/tests/test_financial.py#L129
No overloads for "pv" match the provided arguments (reportCallIssue)
|
|
type-check:
numpy_financial/tests/test_financial.py#L134
Argument of type "Decimal" cannot be assigned to parameter "when" of type "_When" in function "pv"
Type "Decimal" is not assignable to type "_When"
"Decimal" is not assignable to "str"
"Decimal" is not assignable to "int"
"Decimal" is not assignable to "ndarray[_Shape, dtype[Any]]"
"Decimal" is incompatible with protocol "Iterable[str | int]"
"__iter__" is not present (reportArgumentType)
|
|
type-check:
numpy_financial/tests/test_financial.py#L148
No overloads for "pv" match the provided arguments (reportCallIssue)
|
|
type-check
No file matched to [**/uv.lock,**/requirements*.txt]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.
|