Drop support for Python 3.9 #1508
Annotations
10 errors and 1 warning
lint:
bofire/benchmarks/LookupTableBenchmark.py#L70
Expression of type "Series | Unknown | DataFrame" cannot be assigned to return type "DataFrame"
Type "Series | Unknown | DataFrame" cannot be assigned to type "DataFrame"
"Series" is incompatible with "DataFrame" (reportGeneralTypeIssues)
|
lint:
bofire/benchmarks/detergent.py#L86
Argument of type "List[str]" cannot be assigned to parameter "columns" of type "Axes | None" in function "__init__"
Type "List[str]" cannot be assigned to type "Axes | None"
"List[str]" is incompatible with "ExtensionArray"
"List[str]" is incompatible with "ndarray[Unknown, Unknown]"
"List[str]" is incompatible with "Index"
"List[str]" is incompatible with "Series"
"List[str]" is incompatible with protocol "SequenceNotStr[Unknown]"
"index" is an incompatible type
Type "(__value: str, __start: SupportsIndex = 0, __stop: SupportsIndex = sys.maxsize, /) -> int" cannot be assigned to type "(value: Any, /, start: int = 0, stop: int = ...) -> int"
... (reportGeneralTypeIssues)
|
lint:
bofire/benchmarks/multi.py#L106
No overloads for "__getitem__" match the provided arguments (reportGeneralTypeIssues)
|
lint:
bofire/benchmarks/multi.py#L106
Argument of type "tuple[ellipsis, slice]" cannot be assigned to parameter "item" of type "SequenceIndexer" in function "__getitem__"
Type "tuple[ellipsis, slice]" cannot be assigned to type "SequenceIndexer"
"tuple[ellipsis, slice]" is incompatible with "slice"
"tuple[ellipsis, slice]" is incompatible with "list[int]"
"tuple[ellipsis, slice]" is incompatible with "ndarray[Unknown, Unknown]" (reportGeneralTypeIssues)
|
lint:
bofire/benchmarks/multi.py#L114
No overloads for "__getitem__" match the provided arguments (reportGeneralTypeIssues)
|
lint:
bofire/benchmarks/multi.py#L114
Argument of type "tuple[ellipsis, slice]" cannot be assigned to parameter "item" of type "SequenceIndexer" in function "__getitem__"
Type "tuple[ellipsis, slice]" cannot be assigned to type "SequenceIndexer"
"tuple[ellipsis, slice]" is incompatible with "slice"
"tuple[ellipsis, slice]" is incompatible with "list[int]"
"tuple[ellipsis, slice]" is incompatible with "ndarray[Unknown, Unknown]" (reportGeneralTypeIssues)
|
lint:
bofire/benchmarks/multi.py#L116
No overloads for "__getitem__" match the provided arguments (reportGeneralTypeIssues)
|
lint:
bofire/benchmarks/multi.py#L116
Argument of type "tuple[ellipsis, int]" cannot be assigned to parameter "item" of type "SequenceIndexer" in function "__getitem__"
Type "tuple[ellipsis, int]" cannot be assigned to type "SequenceIndexer"
"tuple[ellipsis, int]" is incompatible with "slice"
"tuple[ellipsis, int]" is incompatible with "list[int]"
"tuple[ellipsis, int]" is incompatible with "ndarray[Unknown, Unknown]" (reportGeneralTypeIssues)
|
lint:
bofire/benchmarks/multi.py#L123
Argument of type "List[str]" cannot be assigned to parameter "columns" of type "Axes | None" in function "__init__"
Type "List[str]" cannot be assigned to type "Axes | None"
"List[str]" is incompatible with "ExtensionArray"
"List[str]" is incompatible with "ndarray[Unknown, Unknown]"
"List[str]" is incompatible with "Index"
"List[str]" is incompatible with "Series"
"List[str]" is incompatible with protocol "SequenceNotStr[Unknown]"
"index" is an incompatible type
Type "(__value: str, __start: SupportsIndex = 0, __stop: SupportsIndex = sys.maxsize, /) -> int" cannot be assigned to type "(value: Any, /, start: int = 0, stop: int = ...) -> int"
... (reportGeneralTypeIssues)
|
lint:
bofire/benchmarks/multi.py#L485
Argument of type "List[str]" cannot be assigned to parameter "columns" of type "Axes | None" in function "__init__"
Type "List[str]" cannot be assigned to type "Axes | None"
"List[str]" is incompatible with "ExtensionArray"
"List[str]" is incompatible with "ndarray[Unknown, Unknown]"
"List[str]" is incompatible with "Index"
"List[str]" is incompatible with "Series"
"List[str]" is incompatible with protocol "SequenceNotStr[Unknown]"
"index" is an incompatible type
Type "(__value: str, __start: SupportsIndex = 0, __stop: SupportsIndex = sys.maxsize, /) -> int" cannot be assigned to type "(value: Any, /, start: int = 0, stop: int = ...) -> int"
... (reportGeneralTypeIssues)
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|