WYSIWYG display of generic type arguments with defaults#2488
WYSIWYG display of generic type arguments with defaults#2488Adist319 wants to merge 2 commits intofacebook:mainfrom
Conversation
When generic types have default type parameters (PEP 696), omit trailing type args that match their defaults in displayed types. This makes type output less verbose and more intuitive - types are shown as the user wrote them rather than with all defaults filled in. For example, `Generator[str, None, None]` now displays as `Generator[str]` since SendType and ReturnType both default to None. Similarly, `ExceptionGroup[Exception]` displays as just `ExceptionGroup` since Exception is the default. Closes facebook#2461
This comment has been minimized.
This comment has been minimized.
|
@yangdanny97 has imported this pull request. If you are a Meta employee, you can view this in D94091688. |
kinto0
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
rchen152
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
crates/pyrefly_types/src/types.rs
Outdated
| /// Returns the number of type arguments to display, stripping trailing args | ||
| /// that match their parameter defaults (WYSIWYG display per issue #2461). | ||
| pub fn display_count(&self) -> usize { | ||
| let paired: Vec<_> = self.iter_paired().collect(); |
There was a problem hiding this comment.
you don't need to collect here, you can iterate it directly
| T = TypeVar('T') | ||
| U = TypeVar('U', default=int) | ||
| V = TypeVar('V') | ||
| class MyClass(Generic[T, U, V]): # E: Type parameter `V` without a default cannot follow type parameter `U` with a default |
There was a problem hiding this comment.
I don't see any assertions on what type is printed
| test_wysiwyg_fully_specified_generic, | ||
| r#" | ||
| from typing import Generic, TypeVar, reveal_type | ||
| T = TypeVar('T', default=int) |
There was a problem hiding this comment.
We're missing a test case here for when the explicit user-provided type arguments match the defaults
|
@rchen152 noted during review that PR does not exactly implement WYSIWYG WYSIWYG would mean that even if the user writes explicit type arguments that do match the defaults, we will display it. Right now, this PR makes it so that we do not display any type arguments that match the default. I actually prefer the approach this PR takes over the suggestion in the original issue since types are displayed consistently & compactly, but want to double check that this is OK w/ @jorenham |
Yea I'm ok with that. The downside is that it might be a bit confusing for users that if they write |
|
@yangdanny97 @jorenham Thanks for the review! Pushed the latest commit that removed the unnecessary .collect(), added reveal_type assertions where it was missing, and added the missing test case for explicit args matching defaults. And yes, the WYSIWYG approach isn't "followed" when explicit type arguments match the default. Agreed it could be a little confusing, but my thought process was that they're equivalent types, and distinguishing "user wrote the defaults" from "defaults were filled in" would mean tracking provenance through the type system. Reasonable tradeoff imo, but I'm open to more suggestions before closing this PR. |
|
Diff from mypy_primer, showing the effect of this PR on open source code: urllib3 (https://github.com/urllib3/urllib3)
- ERROR test/with_dummyserver/test_socketlevel.py:2688:51-55: Argument `BytesIO | Generator[bytes, None, None] | StringIO | bytearray | bytes` is not assignable to parameter `body` with type `IO[Any] | Iterable[bytes] | bytes | str | None` in function `urllib3._request_methods.RequestMethods.request` [bad-argument-type]
+ ERROR test/with_dummyserver/test_socketlevel.py:2688:51-55: Argument `BytesIO | Generator[bytes] | StringIO | bytearray | bytes` is not assignable to parameter `body` with type `IO[Any] | Iterable[bytes] | bytes | str | None` in function `urllib3._request_methods.RequestMethods.request` [bad-argument-type]
- ERROR src/urllib3/response.py:421:40-51: Argument `memoryview[int]` is not assignable to parameter `x` with type `bytes | memoryview[bytes]` in function `collections.deque.appendleft` [bad-argument-type]
+ ERROR src/urllib3/response.py:421:40-51: Argument `memoryview` is not assignable to parameter `x` with type `bytes | memoryview[bytes]` in function `collections.deque.appendleft` [bad-argument-type]
- ERROR src/urllib3/util/ssltransport.py:108:31-48: Argument `memoryview[int]` is not assignable to parameter `data` with type `bytes` in function `SSLTransport.send` [bad-argument-type]
+ ERROR src/urllib3/util/ssltransport.py:108:31-48: Argument `memoryview` is not assignable to parameter `data` with type `bytes` in function `SSLTransport.send` [bad-argument-type]
trio (https://github.com/python-trio/trio)
- (command: StrOrBytesPath, *, stdin: HasFileno | bytearray | bytes | int | memoryview[int] | None = b'', shell: Literal[True], **kwargs: Unpack[UnixRunProcessArgs]) -> Coroutine[Unknown, Unknown, CompletedProcess[bytes]]
+ (command: StrOrBytesPath, *, stdin: HasFileno | bytearray | bytes | int | memoryview | None = b'', shell: Literal[True], **kwargs: Unpack[UnixRunProcessArgs]) -> Coroutine[Unknown, Unknown, CompletedProcess[bytes]]
- (command: Sequence[StrOrBytesPath], *, stdin: HasFileno | bytearray | bytes | int | memoryview[int] | None = b'', shell: bool = False, **kwargs: Unpack[UnixRunProcessArgs]) -> Coroutine[Unknown, Unknown, CompletedProcess[bytes]]
+ (command: Sequence[StrOrBytesPath], *, stdin: HasFileno | bytearray | bytes | int | memoryview | None = b'', shell: bool = False, **kwargs: Unpack[UnixRunProcessArgs]) -> Coroutine[Unknown, Unknown, CompletedProcess[bytes]]
- (command: StrOrBytesPath, *, stdin: HasFileno | bytearray | bytes | int | memoryview[int] | None = b'', shell: Literal[True], **kwargs: Unpack[UnixRunProcessArgs]) -> Coroutine[Unknown, Unknown, CompletedProcess[bytes]]
+ (command: StrOrBytesPath, *, stdin: HasFileno | bytearray | bytes | int | memoryview | None = b'', shell: Literal[True], **kwargs: Unpack[UnixRunProcessArgs]) -> Coroutine[Unknown, Unknown, CompletedProcess[bytes]]
- (command: Sequence[StrOrBytesPath], *, stdin: HasFileno | bytearray | bytes | int | memoryview[int] | None = b'', shell: bool = False, **kwargs: Unpack[UnixRunProcessArgs]) -> Coroutine[Unknown, Unknown, CompletedProcess[bytes]]
+ (command: Sequence[StrOrBytesPath], *, stdin: HasFileno | bytearray | bytes | int | memoryview | None = b'', shell: bool = False, **kwargs: Unpack[UnixRunProcessArgs]) -> Coroutine[Unknown, Unknown, CompletedProcess[bytes]]
- ERROR src/trio/testing/_check_streams.py:304:35-72: Unpacked argument `tuple[(data: bytearray | bytes | memoryview[int]) -> Coroutine[Unknown, Unknown, None], Literal[b'x']]` is not assignable to parameter `*args` with type `tuple[() -> Awaitable[object]]` in function `trio._core._run.Nursery.start_soon` [bad-argument-type]
+ ERROR src/trio/testing/_check_streams.py:304:35-72: Unpacked argument `tuple[(data: bytearray | bytes | memoryview) -> Coroutine[Unknown, Unknown, None], Literal[b'x']]` is not assignable to parameter `*args` with type `tuple[() -> Awaitable[object]]` in function `trio._core._run.Nursery.start_soon` [bad-argument-type]
- ERROR src/trio/testing/_raises_group.py:69:16-25: Returned type `_ExceptionInfo[BaseException]` is not assignable to declared return type `_ExceptionInfo[MatchE]` [bad-return]
+ ERROR src/trio/testing/_raises_group.py:69:16-25: Returned type `_ExceptionInfo` is not assignable to declared return type `_ExceptionInfo[MatchE]` [bad-return]
websockets (https://github.com/aaugustin/websockets)
- ERROR src/websockets/legacy/protocol.py:629:41-48: Argument `bytearray | bytes | memoryview[DataLike] | memoryview[int] | str` is not assignable to parameter `data` with type `bytearray | bytes | memoryview[int] | str` in function `websockets.legacy.framing.prepare_data` [bad-argument-type]
+ ERROR src/websockets/legacy/protocol.py:629:41-48: Argument `bytearray | bytes | memoryview[DataLike] | memoryview | str` is not assignable to parameter `data` with type `bytearray | bytes | memoryview | str` in function `websockets.legacy.framing.prepare_data` [bad-argument-type]
imagehash (https://github.com/JohannesBuchner/imagehash)
- ERROR imagehash/__init__.py:382:3-12: Cannot set item in `list[tuple[ndarray[tuple[Any, ...], dtype[Any]] | Unknown, ndarray[tuple[Any, ...], dtype[Any]] | Unknown, ndarray[tuple[Any, ...], dtype[Any]] | Unknown]]` [unsupported-operation]
+ ERROR imagehash/__init__.py:382:3-12: Cannot set item in `list[tuple[ndarray | Unknown, ndarray | Unknown, ndarray | Unknown]]` [unsupported-operation]
colour (https://github.com/colour-science/colour)
- ERROR colour/algebra/coordinates/transformations.py:104:19-36: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Any]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/algebra/coordinates/transformations.py:104:19-36: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/algebra/coordinates/transformations.py:253:19-41: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/algebra/coordinates/transformations.py:253:19-41: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/algebra/coordinates/transformations.py:290:19-37: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/algebra/coordinates/transformations.py:290:19-37: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/appearance/scam.py:437:21-22: Argument `ndarray[tuple[Any, ...], dtype[Unknown]] | None` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.has_only_nan` [bad-argument-type]
+ ERROR colour/appearance/scam.py:437:21-22: Argument `ndarray[tuple[Any, ...], dtype[Unknown]] | None` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.has_only_nan` [bad-argument-type]
- ERROR colour/appearance/scam.py:437:41-42: Argument `ndarray[tuple[Any, ...], dtype[Unknown]] | None` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.has_only_nan` [bad-argument-type]
+ ERROR colour/appearance/scam.py:437:41-42: Argument `ndarray[tuple[Any, ...], dtype[Unknown]] | None` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.has_only_nan` [bad-argument-type]
- ERROR colour/blindness/machado2009.py:241:20-35: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/blindness/machado2009.py:241:20-35: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/characterisation/aces_it.py:273:37-47: Argument `SpectralDistribution | None` is not assignable to parameter `sd` with type `Buffer | MultiSpectralDistributions | SpectralDistribution | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.colorimetry.tristimulus_values.sd_to_XYZ` [bad-argument-type]
+ ERROR colour/characterisation/aces_it.py:273:37-47: Argument `SpectralDistribution | None` is not assignable to parameter `sd` with type `Buffer | MultiSpectralDistributions | SpectralDistribution | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.colorimetry.tristimulus_values.sd_to_XYZ` [bad-argument-type]
- ERROR colour/characterisation/correction.py:182:28-43: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/characterisation/correction.py:182:28-43: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/characterisation/correction.py:185:13-191:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/characterisation/correction.py:185:13-191:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/characterisation/correction.py:195:13-203:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/characterisation/correction.py:195:13-203:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/characterisation/correction.py:207:13-216:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/characterisation/correction.py:207:13-216:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/characterisation/correction.py:220:13-231:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/characterisation/correction.py:220:13-231:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/characterisation/correction.py:235:13-247:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/characterisation/correction.py:235:13-247:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/characterisation/correction.py:251:13-266:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/characterisation/correction.py:251:13-266:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/characterisation/correction.py:291:13-309:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/characterisation/correction.py:291:13-309:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/characterisation/correction.py:337:13-358:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/characterisation/correction.py:337:13-358:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/characterisation/correction.py:389:13-425:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/characterisation/correction.py:389:13-425:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/colorimetry/spectrum.py:417:30-420:22: No matching overload found for function `numpy._core.fromnumeric.around` called with arguments: (Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str, int) [no-matching-overload]
+ ERROR colour/colorimetry/spectrum.py:417:30-420:22: No matching overload found for function `numpy._core.fromnumeric.around` called with arguments: (Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str, int) [no-matching-overload]
- ERROR colour/continuous/signal.py:1207:45-56: Argument `Categorical | ExtensionArray | ndarray[tuple[int], dtype[Any]]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.as_float_array` [bad-argument-type]
+ ERROR colour/continuous/signal.py:1207:45-56: Argument `Categorical | ExtensionArray | ndarray[tuple[int]]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.as_float_array` [bad-argument-type]
- ERROR colour/difference/cam02_ucs.py:265:27-270:6: No matching overload found for function `delta_E_Luo2006` called with arguments: (Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str, Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str, Any, additional_data=bool) [no-matching-overload]
- ERROR colour/difference/cam02_ucs.py:353:27-358:6: No matching overload found for function `delta_E_Luo2006` called with arguments: (Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str, Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str, Any, additional_data=bool) [no-matching-overload]
- ERROR colour/difference/cam02_ucs.py:441:27-446:6: No matching overload found for function `delta_E_Luo2006` called with arguments: (Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str, Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str, Any, additional_data=bool) [no-matching-overload]
+ ERROR colour/difference/cam02_ucs.py:265:27-270:6: No matching overload found for function `delta_E_Luo2006` called with arguments: (Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str, Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str, Any, additional_data=bool) [no-matching-overload]
+ ERROR colour/difference/cam02_ucs.py:353:27-358:6: No matching overload found for function `delta_E_Luo2006` called with arguments: (Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str, Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str, Any, additional_data=bool) [no-matching-overload]
+ ERROR colour/difference/cam02_ucs.py:441:27-446:6: No matching overload found for function `delta_E_Luo2006` called with arguments: (Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str, Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str, Any, additional_data=bool) [no-matching-overload]
- ERROR colour/geometry/ellipse.py:266:17-38: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/geometry/ellipse.py:266:17-38: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/graph/conversion.py:476:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/graph/conversion.py:476:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/graph/conversion.py:598:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/graph/conversion.py:598:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/graph/conversion.py:728:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/graph/conversion.py:728:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/graph/conversion.py:866:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/graph/conversion.py:866:19-70: Argument `list[float | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | None]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/hints/__init__.py:688:11-17: Argument `list[Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `arraylike` [bad-argument-type]
+ ERROR colour/hints/__init__.py:688:11-17: Argument `list[Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `arraylike` [bad-argument-type]
- ERROR colour/hints/__init__.py:690:11-17: Argument `list[Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype[Any]]] | _SupportsArray[dtype[Any]] | bytes | complex | str` in function `arraylike` [bad-argument-type]
+ ERROR colour/hints/__init__.py:690:11-17: Argument `list[Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `arraylike` [bad-argument-type]
... (truncated 178 lines) ...
cki-lib (https://gitlab.com/cki-project/cki-lib)
- ERROR cki_lib/inttests/remote_responses.py:211:80-92: Expected a mapping, got Message[str, str] [invalid-argument]
+ ERROR cki_lib/inttests/remote_responses.py:211:80-92: Expected a mapping, got Message [invalid-argument]
black (https://github.com/psf/black)
- ERROR src/black/files.py:426:16-85: Returned type `StreamWrapper | TextIOWrapper[_WrappedBuffer]` is not assignable to declared return type `AnsiToWin32 | TextIOWrapper[_WrappedBuffer]` [bad-return]
+ ERROR src/black/files.py:426:16-85: Returned type `StreamWrapper | TextIOWrapper` is not assignable to declared return type `AnsiToWin32 | TextIOWrapper` [bad-return]
Expression (https://github.com/cognitedata/Expression)
- ERROR README.py:358:9-28: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR README.py:358:9-28: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR README.py:382:9-27: Cannot yield from `Generator[Any, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR README.py:382:9-27: Cannot yield from `Generator[Any]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR README.py:385:9-28: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR README.py:385:9-28: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR README.py:455:9-26: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR README.py:455:9-26: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR README.py:456:9-26: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR README.py:456:9-26: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_async_option_builder.py:99:5-32: Argument `() -> Coroutine[Unknown, Unknown, AsyncGenerator[int, int]]` is not assignable to parameter `fn` with type `() -> AsyncGenerator[int, int] | AsyncGenerator[int, None]` in function `expression.effect.async_option.AsyncOptionBuilder.__call__` [bad-argument-type]
+ ERROR tests/test_async_option_builder.py:99:5-32: Argument `() -> Coroutine[Unknown, Unknown, AsyncGenerator[int, int]]` is not assignable to parameter `fn` with type `() -> AsyncGenerator[int, int] | AsyncGenerator[int]` in function `expression.effect.async_option.AsyncOptionBuilder.__call__` [bad-argument-type]
- ERROR tests/test_async_result_builder.py:99:5-37: Argument `() -> Coroutine[Unknown, Unknown, AsyncGenerator[int, int]]` is not assignable to parameter `fn` with type `() -> AsyncGenerator[int, int] | AsyncGenerator[int, None]` in function `expression.effect.async_result.AsyncResultBuilder.__call__` [bad-argument-type]
+ ERROR tests/test_async_result_builder.py:99:5-37: Argument `() -> Coroutine[Unknown, Unknown, AsyncGenerator[int, int]]` is not assignable to parameter `fn` with type `() -> AsyncGenerator[int, int] | AsyncGenerator[int]` in function `expression.effect.async_result.AsyncResultBuilder.__call__` [bad-argument-type]
- ERROR tests/test_catch.py:72:13-30: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_catch.py:72:13-30: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_catch.py:83:13-52: Cannot yield from `Generator[Any, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_catch.py:83:13-52: Cannot yield from `Generator[Any]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_catch.py:99:13-35: Cannot yield from `Generator[str, None, None]`, which is not assignable to declared return type `Generator[str, str, Unknown]` [invalid-yield]
+ ERROR tests/test_catch.py:99:13-35: Cannot yield from `Generator[str]`, which is not assignable to declared return type `Generator[str, str, Unknown]` [invalid-yield]
- ERROR tests/test_option_builder.py:43:18-36: Cannot yield from `Generator[Any, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_option_builder.py:43:18-36: Cannot yield from `Generator[Any]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_option_builder.py:107:18-37: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_option_builder.py:107:18-37: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_option_builder.py:123:18-36: Cannot yield from `Generator[Any, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_option_builder.py:123:18-36: Cannot yield from `Generator[Any]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_option_builder.py:136:18-37: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_option_builder.py:136:18-37: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_option_builder.py:159:18-37: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_option_builder.py:159:18-37: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_option_builder.py:269:21-44: Cannot yield from `Generator[str, None, None]`, which is not assignable to declared return type `Generator[str, str, Unknown]` [invalid-yield]
+ ERROR tests/test_option_builder.py:269:21-44: Cannot yield from `Generator[str]`, which is not assignable to declared return type `Generator[str, str, Unknown]` [invalid-yield]
- ERROR tests/test_option_builder.py:285:13-31: Cannot yield from `Generator[Any, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_option_builder.py:285:13-31: Cannot yield from `Generator[Any]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_option_builder.py:288:13-32: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_option_builder.py:288:13-32: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_result_builder.py:42:18-43: Cannot yield from `Generator[Any, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_result_builder.py:42:18-43: Cannot yield from `Generator[Any]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_result_builder.py:106:18-35: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_result_builder.py:106:18-35: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_result_builder.py:122:18-43: Cannot yield from `Generator[Any, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_result_builder.py:122:18-43: Cannot yield from `Generator[Any]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_result_builder.py:139:18-35: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_result_builder.py:139:18-35: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_result_builder.py:162:18-37: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_result_builder.py:162:18-37: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_result_builder.py:277:21-42: Cannot yield from `Generator[str, None, None]`, which is not assignable to declared return type `Generator[str, str, Unknown]` [invalid-yield]
+ ERROR tests/test_result_builder.py:277:21-42: Cannot yield from `Generator[str]`, which is not assignable to declared return type `Generator[str, str, Unknown]` [invalid-yield]
- ERROR tests/test_result_builder.py:293:13-38: Cannot yield from `Generator[Any, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_result_builder.py:293:13-38: Cannot yield from `Generator[Any]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
- ERROR tests/test_result_builder.py:296:13-30: Cannot yield from `Generator[int, None, None]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
+ ERROR tests/test_result_builder.py:296:13-30: Cannot yield from `Generator[int]`, which is not assignable to declared return type `Generator[int, int, Unknown]` [invalid-yield]
hydpy (https://github.com/hydpy-dev/hydpy)
- ERROR hydpy/auxs/statstools.py:298:23-48: Argument `Series[Any]` is not assignable to parameter `sim` with type `ndarray[tuple[Any, ...], dtype[float64]]` in function `SimObs.__new__` [bad-argument-type]
+ ERROR hydpy/auxs/statstools.py:298:23-48: Argument `Series` is not assignable to parameter `sim` with type `ndarray[tuple[Any, ...], dtype[float64]]` in function `SimObs.__new__` [bad-argument-type]
- ERROR hydpy/auxs/statstools.py:298:54-79: Argument `Series[Any]` is not assignable to parameter `obs` with type `ndarray[tuple[Any, ...], dtype[float64]]` in function `SimObs.__new__` [bad-argument-type]
+ ERROR hydpy/auxs/statstools.py:298:54-79: Argument `Series` is not assignable to parameter `obs` with type `ndarray[tuple[Any, ...], dtype[float64]]` in function `SimObs.__new__` [bad-argument-type]
- ERROR hydpy/core/masktools.py:299:22-47: Cannot index into `ndarray[tuple[Any, ...], dtype[Any]]` [bad-index]
+ ERROR hydpy/core/masktools.py:299:22-47: Cannot index into `ndarray` [bad-index]
- ERROR hydpy/core/masktools.py:300:19-27: No matching overload found for function `set.__init__` called with arguments: (bool | float | int | ndarray[tuple[Any, ...], dtype[Any]] | Unknown) [no-matching-overload]
+ ERROR hydpy/core/masktools.py:300:19-27: No matching overload found for function `set.__init__` called with arguments: (bool | float | int | ndarray | Unknown) [no-matching-overload]
- ERROR hydpy/core/modeltools.py:3455:33-76: No matching overload found for function `range.__new__` called with arguments: (type[range], bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]) [no-matching-overload]
+ ERROR hydpy/core/modeltools.py:3455:33-76: No matching overload found for function `range.__new__` called with arguments: (type[range], bool | float | int | ndarray) [no-matching-overload]
- ERROR hydpy/core/modeltools.py:3457:33-71: No matching overload found for function `range.__new__` called with arguments: (type[range], bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]) [no-matching-overload]
+ ERROR hydpy/core/modeltools.py:3457:33-71: No matching overload found for function `range.__new__` called with arguments: (type[range], bool | float | int | ndarray) [no-matching-overload]
- ERROR hydpy/core/modeltools.py:3513:25-62: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `value` with type `float` in function `SubstepModel.timeleft` [bad-argument-type]
+ ERROR hydpy/core/modeltools.py:3513:25-62: Argument `bool | float | int | ndarray` is not assignable to parameter `value` with type `float` in function `SubstepModel.timeleft` [bad-argument-type]
- ERROR hydpy/core/modeltools.py:4051:13-53: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `double` with type `float` in function `hydpy.cythons.modelutils.isnan` [bad-argument-type]
+ ERROR hydpy/core/modeltools.py:4051:13-53: Argument `bool | float | int | ndarray` is not assignable to parameter `double` with type `float` in function `hydpy.cythons.modelutils.isnan` [bad-argument-type]
- ERROR hydpy/core/parametertools.py:3423:38-63: No matching overload found for function `zip.__new__` called with arguments: (type[zip[_T_co]], tuple[str, ...], bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]) [no-matching-overload]
+ ERROR hydpy/core/parametertools.py:3423:38-63: No matching overload found for function `zip.__new__` called with arguments: (type[zip[_T_co]], tuple[str, ...], bool | float | int | ndarray) [no-matching-overload]
- (file: FileDescriptorOrPath, mode: OpenTextMode = 'r', buffering: int = -1, encoding: str | None = None, errors: str | None = None, newline: str | None = None, closefd: bool = True, opener: ((str, int) -> int) | None = None) -> TextIOWrapper[_WrappedBuffer]
+ (file: FileDescriptorOrPath, mode: OpenTextMode = 'r', buffering: int = -1, encoding: str | None = None, errors: str | None = None, newline: str | None = None, closefd: bool = True, opener: ((str, int) -> int) | None = None) -> TextIOWrapper
- (file: FileDescriptorOrPath, mode: OpenBinaryModeReading, buffering: Literal[-1, 1] = -1, encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int) -> int) | None = None) -> BufferedReader[_BufferedReaderStream]
+ (file: FileDescriptorOrPath, mode: OpenBinaryModeReading, buffering: Literal[-1, 1] = -1, encoding: None = None, errors: None = None, newline: None = None, closefd: bool = True, opener: ((str, int) -> int) | None = None) -> BufferedReader
- ERROR hydpy/core/typingtools.py:91:21-31: `T` is not assignable to upper bound `generic[Any]` of type variable `_ScalarT` [bad-specialization]
+ ERROR hydpy/core/typingtools.py:91:21-31: `T` is not assignable to upper bound `generic` of type variable `_ScalarT` [bad-specialization]
- ERROR hydpy/core/typingtools.py:102:21-31: `T` is not assignable to upper bound `generic[Any]` of type variable `_ScalarT` [bad-specialization]
+ ERROR hydpy/core/typingtools.py:102:21-31: `T` is not assignable to upper bound `generic` of type variable `_ScalarT` [bad-specialization]
- ERROR hydpy/core/typingtools.py:114:21-31: `T` is not assignable to upper bound `generic[Any]` of type variable `_ScalarT` [bad-specialization]
+ ERROR hydpy/core/typingtools.py:114:21-31: `T` is not assignable to upper bound `generic` of type variable `_ScalarT` [bad-specialization]
- ERROR hydpy/core/variabletools.py:1680:20-30: Returned type `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to declared return type `ndarray[tuple[Any, ...], dtype[Unknown]]` [bad-return]
+ ERROR hydpy/core/variabletools.py:1680:20-30: Returned type `bool | float | int | ndarray` is not assignable to declared return type `ndarray[tuple[Any, ...], dtype[Unknown]]` [bad-return]
- ERROR hydpy/core/variabletools.py:1855:24-34: Returned type `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to declared return type `float` [bad-return]
+ ERROR hydpy/core/variabletools.py:1855:24-34: Returned type `bool | float | int | ndarray` is not assignable to declared return type `float` [bad-return]
- ERROR hydpy/core/variabletools.py:2076:20-30: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `x` with type `SupportsAbs[int]` in function `abs` [bad-argument-type]
+ ERROR hydpy/core/variabletools.py:2076:20-30: Argument `bool | float | int | ndarray` is not assignable to parameter `x` with type `SupportsAbs[int]` in function `abs` [bad-argument-type]
- ERROR hydpy/models/arma/arma_derived.py:45:29-39: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
+ ERROR hydpy/models/arma/arma_derived.py:45:29-39: Argument `bool | float | int | ndarray` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
- ERROR hydpy/models/arma/arma_derived.py:46:30-40: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
+ ERROR hydpy/models/arma/arma_derived.py:46:30-40: Argument `bool | float | int | ndarray` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
- ERROR hydpy/models/arma/arma_derived.py:47:28-38: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
+ ERROR hydpy/models/arma/arma_derived.py:47:28-38: Argument `bool | float | int | ndarray` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
- ERROR hydpy/models/arma/arma_derived.py:48:28-38: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
+ ERROR hydpy/models/arma/arma_derived.py:48:28-38: Argument `bool | float | int | ndarray` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
- ERROR hydpy/models/conv/conv_derived.py:32:34-44: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
+ ERROR hydpy/models/conv/conv_derived.py:32:34-44: Argument `bool | float | int | ndarray` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
- ERROR hydpy/models/conv/conv_derived.py:78:34-44: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
+ ERROR hydpy/models/conv/conv_derived.py:78:34-44: Argument `bool | float | int | ndarray` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
- ERROR hydpy/models/conv/conv_derived.py:138:38-47: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR hydpy/models/conv/conv_derived.py:138:38-47: Argument `bool | float | int | ndarray` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR hydpy/models/conv/conv_derived.py:138:54-62: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR hydpy/models/conv/conv_derived.py:138:54-62: Argument `bool | float | int | ndarray` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR hydpy/models/conv/conv_derived.py:139:40-49: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `enumerate.__new__` [bad-argument-type]
+ ERROR hydpy/models/conv/conv_derived.py:139:40-49: Argument `bool | float | int | ndarray` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `enumerate.__new__` [bad-argument-type]
- ERROR hydpy/models/conv/conv_derived.py:196:27-77: No matching overload found for function `numpy._core.multiarray._ConstructorEmpty.__call__` called with arguments: (tuple[int, bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]], dtype=type[signedinteger[_64Bit]]) [no-matching-overload]
+ ERROR hydpy/models/conv/conv_derived.py:196:27-77: No matching overload found for function `numpy._core.multiarray._ConstructorEmpty.__call__` called with arguments: (tuple[int, bool | float | int | ndarray], dtype=type[signedinteger[_64Bit]]) [no-matching-overload]
- ERROR hydpy/models/conv/conv_derived.py:196:33-42: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR hydpy/models/conv/conv_derived.py:196:33-42: Argument `bool | float | int | ndarray` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR hydpy/models/conv/conv_derived.py:197:42-51: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `enumerate.__new__` [bad-argument-type]
+ ERROR hydpy/models/conv/conv_derived.py:197:42-51: Argument `bool | float | int | ndarray` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `enumerate.__new__` [bad-argument-type]
- ERROR hydpy/models/conv/conv_derived.py:264:30-82: No matching overload found for function `numpy._core.multiarray._ConstructorEmpty.__call__` called with arguments: (tuple[int, bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]], dtype=type[float64]) [no-matching-overload]
+ ERROR hydpy/models/conv/conv_derived.py:264:30-82: No matching overload found for function `numpy._core.multiarray._ConstructorEmpty.__call__` called with arguments: (tuple[int, bool | float | int | ndarray], dtype=type[float64]) [no-matching-overload]
- ERROR hydpy/models/conv/conv_derived.py:264:36-45: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR hydpy/models/conv/conv_derived.py:264:36-45: Argument `bool | float | int | ndarray` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR hydpy/models/conv/conv_derived.py:265:42-51: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `enumerate.__new__` [bad-argument-type]
+ ERROR hydpy/models/conv/conv_derived.py:265:42-51: Argument `bool | float | int | ndarray` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `enumerate.__new__` [bad-argument-type]
- ERROR hydpy/models/dam/dam_control.py:62:33-42: Argument `tuple[bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
+ ERROR hydpy/models/dam/dam_control.py:62:33-42: Argument `tuple[bool | float | int | ndarray]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
- ERROR hydpy/models/dam/dam_model.py:6204:38-63: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `subareas` with type `Sequence[float]` in function `hydpy.interfaces.precipinterfaces.PrecipModel_V2.prepare_subareas` [bad-argument-type]
+ ERROR hydpy/models/dam/dam_model.py:6204:38-63: Argument `bool | float | int | ndarray` is not assignable to parameter `subareas` with type `Sequence[float]` in function `hydpy.interfaces.precipinterfaces.PrecipModel_V2.prepare_subareas` [bad-argument-type]
- ERROR hydpy/models/dam/dam_model.py:6245:34-59: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `subareas` with type `Sequence[float]` in function `hydpy.interfaces.petinterfaces.PETModel_V1.prepare_subareas` [bad-argument-type]
+ ERROR hydpy/models/dam/dam_model.py:6245:34-59: Argument `bool | float | int | ndarray` is not assignable to parameter `subareas` with type `Sequence[float]` in function `hydpy.interfaces.petinterfaces.PETModel_V1.prepare_subareas` [bad-argument-type]
- ERROR hydpy/models/dummy/dummy_control.py:22:37-47: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
+ ERROR hydpy/models/dummy/dummy_control.py:22:37-47: Argument `bool | float | int | ndarray` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
- ERROR hydpy/models/evap/evap_control.py:29:37-47: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_control.py:29:37-47: Argument `bool | float | int | ndarray` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
- ERROR hydpy/models/evap/evap_control.py:34:37-47: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_control.py:34:37-47: Argument `bool | float | int | ndarray` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
- ERROR hydpy/models/evap/evap_derived.py:167:29-38: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]] | tuple[bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]] | tuple[bool | float | int | ndarray[tuple[Any, ...], dtype[Any]], bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_derived.py:167:29-38: Argument `bool | float | int | ndarray | tuple[bool | float | int | ndarray] | tuple[bool | float | int | ndarray, bool | float | int | ndarray]` is not assignable to parameter `value` with type `int | tuple[int, ...]` in function `hydpy.core.propertytools.BaseProperty.__set__` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8400:35-55: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.petinterfaces.PETModel_V1.prepare_nmbzones` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8400:35-55: Argument `bool | float | int | ndarray` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.petinterfaces.PETModel_V1.prepare_nmbzones` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8401:35-57: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `subareas` with type `Sequence[float]` in function `hydpy.interfaces.petinterfaces.PETModel_V1.prepare_subareas` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8401:35-57: Argument `bool | float | int | ndarray` is not assignable to parameter `subareas` with type `Sequence[float]` in function `hydpy.interfaces.petinterfaces.PETModel_V1.prepare_subareas` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8438:35-55: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.petinterfaces.PETModel_V1.prepare_nmbzones` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8438:35-55: Argument `bool | float | int | ndarray` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.petinterfaces.PETModel_V1.prepare_nmbzones` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8486:35-55: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.petinterfaces.PETModel_V2.prepare_nmbzones` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8486:35-55: Argument `bool | float | int | ndarray` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.petinterfaces.PETModel_V2.prepare_nmbzones` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8487:39-65: Argument `builtins.bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `interception` with type `Sequence[builtins.bool] | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]` in function `hydpy.interfaces.petinterfaces.PETModel_V2.prepare_interception` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8488:31-49: Argument `builtins.bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `soil` with type `Sequence[builtins.bool] | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]` in function `hydpy.interfaces.petinterfaces.PETModel_V2.prepare_soil` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8489:32-51: Argument `builtins.bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `water` with type `Sequence[builtins.bool] | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]` in function `hydpy.interfaces.petinterfaces.PETModel_V2.prepare_water` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8487:39-65: Argument `builtins.bool | float | int | ndarray` is not assignable to parameter `interception` with type `Sequence[builtins.bool] | ndarray[tuple[Any, ...], dtype[numpy.bool]]` in function `hydpy.interfaces.petinterfaces.PETModel_V2.prepare_interception` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8488:31-49: Argument `builtins.bool | float | int | ndarray` is not assignable to parameter `soil` with type `Sequence[builtins.bool] | ndarray[tuple[Any, ...], dtype[numpy.bool]]` in function `hydpy.interfaces.petinterfaces.PETModel_V2.prepare_soil` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8489:32-51: Argument `builtins.bool | float | int | ndarray` is not assignable to parameter `water` with type `Sequence[builtins.bool] | ndarray[tuple[Any, ...], dtype[numpy.bool]]` in function `hydpy.interfaces.petinterfaces.PETModel_V2.prepare_water` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8572:36-56: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.tempinterfaces.TempModel_V2.prepare_nmbzones` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8572:36-56: Argument `bool | float | int | ndarray` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.tempinterfaces.TempModel_V2.prepare_nmbzones` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8573:36-57: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `subareas` with type `Sequence[float]` in function `hydpy.interfaces.tempinterfaces.TempModel_V2.prepare_subareas` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8573:36-57: Argument `bool | float | int | ndarray` is not assignable to parameter `subareas` with type `Sequence[float]` in function `hydpy.interfaces.tempinterfaces.TempModel_V2.prepare_subareas` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8614:36-56: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.tempinterfaces.TempModel_V2.prepare_nmbzones` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8614:36-56: Argument `bool | float | int | ndarray` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.tempinterfaces.TempModel_V2.prepare_nmbzones` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8696:38-58: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.precipinterfaces.PrecipModel_V2.prepare_nmbzones` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8696:38-58: Argument `bool | float | int | ndarray` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.precipinterfaces.PrecipModel_V2.prepare_nmbzones` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8697:38-59: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `subareas` with type `Sequence[float]` in function `hydpy.interfaces.precipinterfaces.PrecipModel_V2.prepare_subareas` [bad-argument-type]
+ ERROR hydpy/models/evap/evap_model.py:8697:38-59: Argument `bool | float | int | ndarray` is not assignable to parameter `subareas` with type `Sequence[float]` in function `hydpy.interfaces.precipinterfaces.PrecipModel_V2.prepare_subareas` [bad-argument-type]
- ERROR hydpy/models/evap/evap_model.py:8737:38-58: Argument `bool | float | int | ndarray[tuple[Any, ...], dtype[Any]]` is not assignable to parameter `nmbzones` with type `int` in function `hydpy.interfaces.precipinterfaces.PrecipModel_V2.prepare_nmbzones` [bad-argument-type]
... (truncated 253 lines) ...
django-stubs (https://github.com/typeddjango/django-stubs)
- ERROR ext/tests/test_aliases.py:7:16-40: `type[QuerySet[Unknown, Unknown]]` is not subscriptable [unsupported-operation]
+ ERROR ext/tests/test_aliases.py:7:16-40: `type[QuerySet[Unknown]]` is not subscriptable [unsupported-operation]
more-itertools (https://github.com/more-itertools/more-itertools)
- ERROR more_itertools/more.py:2636:30-32: `Iterator[Any]` is not assignable to attribute `_iterator` with type `Generator[Unknown, Unknown, None]` [bad-assignment]
+ ERROR more_itertools/more.py:2636:30-32: `Iterator[Any]` is not assignable to attribute `_iterator` with type `Generator[Unknown, Unknown]` [bad-assignment]
tornado (https://github.com/tornadoweb/tornado)
- ERROR tornado/testing.py:600:26-30: Argument `((...) -> Future[Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown, None, None]]) | ((self: Unknown, *args: Unknown, **kwargs: Unknown) -> Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown, None, None])` is not assignable to parameter `wrapped` with type `(...) -> Future[Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown, None, None]]` in function `functools.wraps` [bad-argument-type]
+ ERROR tornado/testing.py:600:26-30: Argument `((...) -> Future[Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown]]) | ((self: Unknown, *args: Unknown, **kwargs: Unknown) -> Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown])` is not assignable to parameter `wrapped` with type `(...) -> Future[Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown]]` in function `functools.wraps` [bad-argument-type]
- ERROR tornado/testing.py:605:39-43: Argument `((...) -> Future[Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown, None, None]]) | ((self: Unknown, *args: Unknown, **kwargs: Unknown) -> Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown, None, None])` is not assignable to parameter `func` with type `(...) -> Future[Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown, None, None]]` in function `functools.partial.__new__` [bad-argument-type]
+ ERROR tornado/testing.py:605:39-43: Argument `((...) -> Future[Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown]]) | ((self: Unknown, *args: Unknown, **kwargs: Unknown) -> Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown])` is not assignable to parameter `func` with type `(...) -> Future[Coroutine[Unknown, Unknown, Unknown] | Generator[Unknown]]` in function `functools.partial.__new__` [bad-argument-type]
zulip (https://github.com/zulip/zulip)
- ERROR zerver/lib/upload/local.py:117:20-49: Argument `() -> BufferedReader[_BufferedReaderStream]` is not assignable to parameter `reader` with type `() -> ReadableStream` in function `zerver.lib.upload.base.StreamingSourceWithSize.__init__` [bad-argument-type]
+ ERROR zerver/lib/upload/local.py:117:20-49: Argument `() -> BufferedReader` is not assignable to parameter `reader` with type `() -> ReadableStream` in function `zerver.lib.upload.base.StreamingSourceWithSize.__init__` [bad-argument-type]
- ERROR zerver/management/commands/backup.py:128:25-132:26: Argument `_TemporaryFileWrapper[bytes]` is not assignable to parameter `cm` with type `AbstractContextManager[_TemporaryFileWrapper[str], bool | None]` in function `contextlib._BaseExitStack.enter_context` [bad-argument-type]
+ ERROR zerver/management/commands/backup.py:128:25-132:26: Argument `_TemporaryFileWrapper[bytes]` is not assignable to parameter `cm` with type `AbstractContextManager[_TemporaryFileWrapper[str]]` in function `contextlib._BaseExitStack.enter_context` [bad-argument-type]
- ERROR zerver/tests/test_message_report.py:242:52-72: `type[QuerySet[Unknown, Unknown]]` is not subscriptable [unsupported-operation]
+ ERROR zerver/tests/test_message_report.py:242:52-72: `type[QuerySet[Unknown]]` is not subscriptable [unsupported-operation]
Tanjun (https://github.com/FasterSpeeding/Tanjun)
- ERROR tanjun/context/slash.py:637:45-55: Argument `BytesIO | PathLike[str] | Resource[Any] | StringIO | UndefinedType | bytearray | bytes | memoryview[int] | str` is not assignable to parameter `singular` with type `BytesIO | UndefinedType` in function `_to_list` [bad-argument-type]
+ ERROR tanjun/context/slash.py:637:45-55: Argument `BytesIO | PathLike[str] | Resource[Any] | StringIO | UndefinedType | bytearray | bytes | memoryview | str` is not assignable to parameter `singular` with type `BytesIO | UndefinedType` in function `_to_list` [bad-argument-type]
apprise (https://github.com/caronc/apprise)
- ERROR apprise/logger.py:163:33-50: `TextIOWrapper[_WrappedBuffer]` is not assignable to attribute `__buffer_ptr` with type `StringIO` [bad-assignment]
+ ERROR apprise/logger.py:163:33-50: `TextIOWrapper` is not assignable to attribute `__buffer_ptr` with type `StringIO` [bad-assignment]
- ERROR apprise/plugins/simplepush.py:207:28-37: Argument `Unknown | None` is not assignable to parameter `key` with type `bytearray | bytes | memoryview[int]` in function `cryptography.hazmat.primitives.ciphers.algorithms.AES.__init__` [bad-argument-type]
+ ERROR apprise/plugins/simplepush.py:207:28-37: Argument `Unknown | None` is not assignable to parameter `key` with type `bytearray | bytes | memoryview` in function `cryptography.hazmat.primitives.ciphers.algorithms.AES.__init__` [bad-argument-type]
core (https://github.com/home-assistant/core)
- ERROR homeassistant/components/backup/http.py:143:26-88: `TextIOWrapper[_WrappedBuffer]` is not assignable to variable `reader` with type `IO[bytes]` [bad-assignment]
+ ERROR homeassistant/components/backup/http.py:143:26-88: `TextIOWrapper` is not assignable to variable `reader` with type `IO[bytes]` [bad-assignment]
- ERROR homeassistant/components/backup/manager.py:1522:22-89: `TextIOWrapper[_WrappedBuffer]` is not assignable to variable `reader` with type `IO[bytes]` [bad-assignment]
+ ERROR homeassistant/components/backup/manager.py:1522:22-89: `TextIOWrapper` is not assignable to variable `reader` with type `IO[bytes]` [bad-assignment]
- ERROR homeassistant/components/fireservicerota/config_flow.py:93:53-58: Argument `ConfigEntry[Any] | None` is not assignable to parameter `entry` with type `ConfigEntry[Any]` in function `homeassistant.config_entries.ConfigEntries.async_update_entry` [bad-argument-type]
+ ERROR homeassistant/components/fireservicerota/config_flow.py:93:53-58: Argument `ConfigEntry | None` is not assignable to parameter `entry` with type `ConfigEntry` in function `homeassistant.config_entries.ConfigEntries.async_update_entry` [bad-argument-type]
- ERROR homeassistant/components/hassio/update.py:68:9-73:64: Argument `Generator[SupervisorAddonUpdateEntity, None, None]` is not assignable to parameter `iterable` with type `Iterable[SupervisorCoreUpdateEntity | SupervisorSupervisorUpdateEntity]` in function `list.extend` [bad-argument-type]
+ ERROR homeassistant/components/hassio/update.py:68:9-73:64: Argument `Generator[SupervisorAddonUpdateEntity]` is not assignable to parameter `iterable` with type `Iterable[SupervisorCoreUpdateEntity | SupervisorSupervisorUpdateEntity]` in function `list.extend` [bad-argument-type]
- ERROR homeassistant/components/icloud/config_flow.py:163:53-58: Argument `ConfigEntry[Any] | None` is not assignable to parameter `entry` with type `ConfigEntry[Any]` in function `homeassistant.config_entries.ConfigEntries.async_update_entry` [bad-argument-type]
+ ERROR homeassistant/components/icloud/config_flow.py:163:53-58: Argument `ConfigEntry | None` is not assignable to parameter `entry` with type `ConfigEntry` in function `homeassistant.config_entries.ConfigEntries.async_update_entry` [bad-argument-type]
- ERROR homeassistant/components/imap/__init__.py:264:20-24: Returned type `Message[str, str] | str | Unknown` is not assignable to declared return type `Message[str, str]` [bad-return]
+ ERROR homeassistant/components/imap/__init__.py:264:20-24: Returned type `Message | str | Unknown` is not assignable to declared return type `Message` [bad-return]
- ERROR homeassistant/components/imap/coordinator.py:218:34-55: Argument `Message[str, str] | list[Message[str, str] | str] | str | Any` is not assignable to parameter `iterable` with type `Iterable[str]` in function `enumerate.__new__` [bad-argument-type]
+ ERROR homeassistant/components/imap/coordinator.py:218:34-55: Argument `Message | list[Message | str] | str | Any` is not assignable to parameter `iterable` with type `Iterable[str]` in function `enumerate.__new__` [bad-argument-type]
- ERROR homeassistant/components/ring/entity.py:186:7-17: Class `RingEntity` has inconsistent type arguments for base class `BaseCoordinatorEntity`: `BaseCoordinatorEntity[RingDataCoordinator]` and `BaseCoordinatorEntity[DataUpdateCoordinator[dict[str, Any]]]` [invalid-inheritance]
+ ERROR homeassistant/components/ring/entity.py:186:7-17: Class `RingEntity` has inconsistent type arguments for base class `BaseCoordinatorEntity`: `BaseCoordinatorEntity[RingDataCoordinator]` and `BaseCoordinatorEntity[DataUpdateCoordinator]` [invalid-inheritance]
- ERROR homeassistant/components/smhi/weather.py:105:7-18: Class `SmhiWeather` has inconsistent type arguments for base class `BaseCoordinatorEntity`: `BaseCoordinatorEntity[SMHIDataUpdateCoordinator]` and `BaseCoordinatorEntity[DataUpdateCoordinator[dict[str, Any]]]` [invalid-inheritance]
+ ERROR homeassistant/components/smhi/weather.py:105:7-18: Class `SmhiWeather` has inconsistent type arguments for base class `BaseCoordinatorEntity`: `BaseCoordinatorEntity[SMHIDataUpdateCoordinator]` and `BaseCoordinatorEntity[DataUpdateCoordinator]` [invalid-inheritance]
- ERROR homeassistant/components/smlight/sensor.py:146:13-82: Argument `Generator[SmSensorEntity, None, None]` is not assignable to parameter `*iterables` with type `Iterable[SmInfoSensorEntity]` in function `itertools.chain.__new__` [bad-argument-type]
+ ERROR homeassistant/components/smlight/sensor.py:146:13-82: Argument `Generator[SmSensorEntity]` is not assignable to parameter `*iterables` with type `Iterable[SmInfoSensorEntity]` in function `itertools.chain.__new__` [bad-argument-type]
- ERROR homeassistant/components/smlight/sensor.py:147:13-87: Argument `Generator[SmUptimeSensorEntity, None, None]` is not assignable to parameter `*iterables` with type `Iterable[SmInfoSensorEntity]` in function `itertools.chain.__new__` [bad-argument-type]
+ ERROR homeassistant/components/smlight/sensor.py:147:13-87: Argument `Generator[SmUptimeSensorEntity]` is not assignable to parameter `*iterables` with type `Iterable[SmInfoSensorEntity]` in function `itertools.chain.__new__` [bad-argument-type]
- ERROR homeassistant/components/tomorrowio/weather.py:97:7-30: Class `TomorrowioWeatherEntity` has inconsistent type arguments for base class `BaseCoordinatorEntity`: `BaseCoordinatorEntity[TomorrowioDataUpdateCoordinator]` and `BaseCoordinatorEntity[DataUpdateCoordinator[dict[str, Any]]]` [invalid-inheritance]
+ ERROR homeassistant/components/tomorrowio/weather.py:97:7-30: Class `TomorrowioWeatherEntity` has inconsistent type arguments for base class `BaseCoordinatorEntity`: `BaseCoordinatorEntity[TomorrowioDataUpdateCoordinator]` and `BaseCoordinatorEntity[DataUpdateCoordinator]` [invalid-inheritance]
- ERROR homeassistant/components/tts/__init__.py:370:36-47: Type `AsyncGenerator[bytes, None] | Path | str` is not an async iterable [not-iterable]
+ ERROR homeassistant/components/tts/__init__.py:370:36-47: Type `AsyncGenerator[bytes] | Path | str` is not an async iterable [not-iterable]
- ERROR homeassistant/components/tts/__init__.py:1074:27-44: Yielded type `AsyncGenerator[str, None] | str` is not assignable to declared yield type `str` [invalid-yield]
+ ERROR homeassistant/components/tts/__init__.py:1074:27-44: Yielded type `AsyncGenerator[str] | str` is not assignable to declared yield type `str` [invalid-yield]
- WARN homeassistant/components/unifiprotect/data.py:129:20-131:10: Redundant cast: `Generator[Unknown, None, None]` is the same type as `Generator[Unknown, None, None]` [redundant-cast]
+ WARN homeassistant/components/unifiprotect/data.py:129:20-131:10: Redundant cast: `Generator[Unknown]` is the same type as `Generator[Unknown]` [redundant-cast]
- ERROR homeassistant/core.py:1465:45-1467:10: Unpacked argument `tuple[EventType[_DataT] | str, _DataT | None, EventOrigin, Context | None]` is not assignable to parameter `*args` with type `tuple[EventType[Mapping[str, Any]] | str, Mapping[str, Any] | None, EventOrigin, Context | None, float | None]` in function `asyncio.events.AbstractEventLoop.call_soon_threadsafe` [bad-argument-type]
+ ERROR homeassistant/core.py:1465:45-1467:10: Unpacked argument `tuple[EventType[_DataT] | str, _DataT | None, EventOrigin, Context | None]` is not assignable to parameter `*args` with type `tuple[EventType | str, Mapping[str, Any] | None, EventOrigin, Context | None, float | None]` in function `asyncio.events.AbstractEventLoop.call_soon_threadsafe` [bad-argument-type]
- ERROR homeassistant/core.py:1554:56-1556:10: Unpacked argument `tuple[EventType[_DataT] | str, (Event[_DataT]) -> Coroutine[Any, Any, None] | None]` is not assignable to parameter `*args` with type `tuple[EventType[Mapping[str, Any]] | str, (Event[Mapping[str, Any]]) -> Coroutine[Any, Any, None] | None, ((Mapping[str, Any]) -> bool) | None, bool | object]` in function `homeassistant.util.async_.run_callback_threadsafe` [bad-argument-type]
+ ERROR homeassistant/core.py:1554:56-1556:10: Unpacked argument `tuple[EventType[_DataT] | str, (Event[_DataT]) -> Coroutine[Any, Any, None] | None]` is not assignable to parameter `*args` with type `tuple[EventType | str, (Event) -> Coroutine[Any, Any, None] | None, ((Mapping[str, Any]) -> bool) | None, bool | object]` in function `homeassistant.util.async_.run_callback_threadsafe` [bad-argument-type]
- ERROR homeassistant/core.py:1631:56-1633:10: Unpacked argument `tuple[EventType[_DataT] | str, (Event[_DataT]) -> Coroutine[Any, Any, None] | None]` is not assignable to parameter `*args` with type `tuple[EventType[Mapping[str, Any]] | str, (Event[Mapping[str, Any]]) -> Coroutine[Any, Any, None] | None, bool | object]` in function `homeassistant.util.async_.run_callback_threadsafe` [bad-argument-type]
+ ERROR homeassistant/core.py:1631:56-1633:10: Unpacked argument `tuple[EventType[_DataT] | str, (Event[_DataT]) -> Coroutine[Any, Any, None] | None]` is not assignable to parameter `*args` with type `tuple[EventType | str, (Event) -> Coroutine[Any, Any, None] | None, bool | object]` in function `homeassistant.util.async_.run_callback_threadsafe` [bad-argument-type]
zope.interface (https://github.com/zopefoundation/zope.interface)
- ERROR src/zope/interface/common/tests/test_collections.py:135:22-38: Cannot set item in `dict[type[Generator] | type[IItemsView] | type[IKeysView] | type[IValuesView] | type[Iterator] | type[MappingProxyType] | type[UserString] | type[memoryview] | type[range] | str, (() -> Generator[int, None, None]) | (() -> Iterator[LiteralString]) | (() -> Iterator[int]) | (() -> Iterator[tuple[@_, @_]]) | (() -> Iterator[Any]) | (() -> Iterator[Unknown]) | (() -> MappingProxyType[Unknown, Unknown]) | (() -> UserString) | (() -> memoryview[int]) | (() -> range) | (self: dict[@_, @_]) -> dict_values[@_, @_] | (self: dict[@_, @_]) -> dict_items[@_, @_] | (self: dict[@_, @_]) -> dict_keys[@_, @_] | type[SkipTest]]` [unsupported-operation]
+ ERROR src/zope/interface/common/tests/test_collections.py:135:22-38: Cannot set item in `dict[type[Generator] | type[IItemsView] | type[IKeysView] | type[IValuesView] | type[Iterator] | type[MappingProxyType] | type[UserString] | type[memoryview] | type[range] | str, (() -> Generator[int]) | (() -> Iterator[LiteralString]) | (() -> Iterator[int]) | (() -> Iterator[tuple[@_, @_]]) | (() -> Iterator[Any]) | (() -> Iterator[Unknown]) | (() -> MappingProxyType[Unknown, Unknown]) | (() -> UserString) | (() -> memoryview) | (() -> range) | (self: dict[@_, @_]) -> dict_values[@_, @_] | (self: dict[@_, @_]) -> dict_items[@_, @_] | (self: dict[@_, @_]) -> dict_keys[@_, @_] | type[SkipTest]]` [unsupported-operation]
- ERROR src/zope/interface/common/tests/test_collections.py:135:42-70: Cannot set item in `dict[type[Generator] | type[IItemsView] | type[IKeysView] | type[IValuesView] | type[Iterator] | type[MappingProxyType] | type[UserString] | type[memoryview] | type[range] | str, (() -> Generator[int, None, None]) | (() -> Iterator[LiteralString]) | (() -> Iterator[int]) | (() -> Iterator[tuple[@_, @_]]) | (() -> Iterator[Any]) | (() -> Iterator[Unknown]) | (() -> MappingProxyType[Unknown, Unknown]) | (() -> UserString) | (() -> memoryview[int]) | (() -> range) | (self: dict[@_, @_]) -> dict_values[@_, @_] | (self: dict[@_, @_]) -> dict_items[@_, @_] | (self: dict[@_, @_]) -> dict_keys[@_, @_] | type[SkipTest]]` [unsupported-operation]
+ ERROR src/zope/interface/common/tests/test_collections.py:135:42-70: Cannot set item in `dict[type[Generator] | type[IItemsView] | type[IKeysView] | type[IValuesView] | type[Iterator] | type[MappingProxyType] | type[UserString] | type[memoryview] | type[range] | str, (() -> Generator[int]) | (() -> Iterator[LiteralString]) | (() -> Iterator[int]) | (() -> Iterator[tuple[@_, @_]]) | (() -> Iterator[Any]) | (() -> Iterator[Unknown]) | (() -> MappingProxyType[Unknown, Unknown]) | (() -> UserString) | (() -> memoryview) | (() -> range) | (self: dict[@_, @_]) -> dict_values[@_, @_] | (self: dict[@_, @_]) -> dict_items[@_, @_] | (self: dict[@_, @_]) -> dict_keys[@_, @_] | type[SkipTest]]` [unsupported-operation]
mkosi (https://github.com/systemd/mkosi)
- ERROR mkosi/qemu.py:643:42-96: Argument `_TemporaryFileWrapper[bytes]` is not assignable to parameter `cm` with type `AbstractContextManager[_TemporaryFileWrapper[str], bool | None]` in function `contextlib._BaseExitStack.enter_context` [bad-argument-type]
+ ERROR mkosi/qemu.py:643:42-96: Argument `_TemporaryFileWrapper[bytes]` is not assignable to parameter `cm` with type `AbstractContextManager[_TemporaryFileWrapper[str]]` in function `contextlib._BaseExitStack.enter_context` [bad-argument-type]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ERROR ddtrace/appsec/_iast/_taint_utils.py:439:24-37: No matching overload found for function `reversed.__new__` called with arguments: (type[reversed[_T]], Generator[Unknown, Unknown, None]) [no-matching-overload]
+ ERROR ddtrace/appsec/_iast/_taint_utils.py:439:24-37: No matching overload found for function `reversed.__new__` called with arguments: (type[reversed[_T]], Generator[Unknown, Unknown]) [no-matching-overload]
- ERROR ddtrace/internal/products.py:85:63-96: Argument `Generator[tuple[str, None], None, None]` is not assignable to parameter `*iterables` with type `Iterable[tuple[str, Product]]` in function `itertools.chain.__new__` [bad-argument-type]
+ ERROR ddtrace/internal/products.py:85:63-96: Argument `Generator[tuple[str, None]]` is not assignable to parameter `*iterables` with type `Iterable[tuple[str, Product]]` in function `itertools.chain.__new__` [bad-argument-type]
pydantic (https://github.com/pydantic/pydantic)
- ERROR pydantic/json_schema.py:2643:22-59: Argument `Generator[_HashableJsonValue, None, None]` is not assignable to parameter `iterable` with type `Iterable[tuple[str, _HashableJsonValue]]` in function `tuple.__new__` [bad-argument-type]
+ ERROR pydantic/json_schema.py:2643:22-59: Argument `Generator[_HashableJsonValue]` is not assignable to parameter `iterable` with type `Iterable[tuple[str, _HashableJsonValue]]` in function `tuple.__new__` [bad-argument-type]
- ERROR pydantic/v1/dataclasses.py:84:60-77: Function declared to return `Generator[(...) -> Any, None, None]` but is missing an explicit `return` [bad-return]
+ ERROR pydantic/v1/dataclasses.py:84:60-77: Function declared to return `Generator[(...) -> Any]` but is missing an explicit `return` [bad-return]
pandera (https://github.com/pandera-dev/pandera)
- WARN pandera/api/pandas/array.py:285:20-59: Redundant cast: `Series[Any]` is the same type as `Series[Any]` [redundant-cast]
+ WARN pandera/api/pandas/array.py:285:20-59: Redundant cast: `Series` is the same type as `Series` [redundant-cast]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `checks` with type `Check | list[Check | Hypothesis] | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `checks` with type `Check | list[Check | Hypothesis] | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `parsers` with type `Parser | list[Parser] | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `parsers` with type `Parser | list[Parser] | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `nullable` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `nullable` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `unique` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `unique` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `report_duplicates` with type `Literal['all', 'exclude_first', 'exclude_last']` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `report_duplicates` with type `Literal['all', 'exclude_first', 'exclude_last']` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `coerce` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `coerce` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `required` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `required` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `name` with type `str | tuple[str, ...] | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `name` with type `str | tuple[str, ...] | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `regex` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `regex` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `title` with type `str | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `title` with type `str | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `description` with type `str | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `description` with type `str | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `metadata` with type `dict[Unknown, Unknown] | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `metadata` with type `dict[Unknown, Unknown] | None` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype[Any] | str | type[Any] | Any | None` is not assignable to parameter `drop_invalid_rows` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:140:46-61: Unpacked keyword argument `DataType | ExtensionDtype | dtype | str | type[Any] | Any | None` is not assignable to parameter `drop_invalid_rows` with type `bool` in function `pandera.api.pandas.components.Column.__init__` [bad-argument-type]
- ERROR pandera/api/pandas/model.py:210:13-73: Argument `dict[Any, Any | None]` is not assignable to parameter `dtype` with type `Literal['<M8[ms]', '<M8[ns]', '<M8[s]', '<M8[us]', '<f2', '<m8[ms]', '<m8[ns]', '<m8[s]', '<m8[us]', '?', 'B', 'D', 'F', 'Float32', 'Float64', 'G', 'H', 'I', 'Int16', 'Int32', 'Int64', 'Int8', 'L', 'M8[ms]', 'M8[ns]', 'M8[s]', 'M8[us]', 'O', 'P', 'Q', 'S', 'U', 'UInt16', 'UInt32', 'UInt64', 'UInt8', 'V', 'b', 'b1', 'binary[pyarrow]', 'bool', 'bool[pyarrow]', 'bool_', 'boolean', 'boolean[pyarrow]', 'byte', 'bytes', 'bytes_', 'c16', 'c32', 'c8', 'category', 'cdouble', 'clongdouble', 'complex', 'complex128', 'complex256', 'complex64', 'csingle', 'd', 'date32[pyarrow]', 'date64[pyarrow]', 'datetime64[ms, UTC]', 'datetime64[ms]', 'datetime64[ns, UTC]', 'datetime64[ns]', 'datetime64[s, UTC]', 'datetime64[s]', 'datetime64[us, UTC]', 'datetime64[us]', 'double', 'double[pyarrow]', 'duration[ms][pyarrow]', 'duration[ns][pyarrow]', 'duration[s][pyarrow]', 'duration[us][pyarrow]', 'e', 'f', 'f16', 'f2', 'f4', 'f8', 'float', 'float128', 'float16', 'float16[pyarrow]', 'float32', 'float32[pyarrow]', 'float64', 'float64[pyarrow]', 'float[pyarrow]', 'g', 'h', 'half', 'i', 'i1', 'i2', 'i4', 'i8', 'int', 'int16', 'int16[pyarrow]', 'int32', 'int32[pyarrow]', 'int64', 'int64[pyarrow]', 'int8', 'int8[pyarrow]', 'int_', 'intc', 'intp', 'l', 'long', 'longdouble', 'longlong', 'm8[ms]', 'm8[ns]', 'm8[s]', 'm8[us]', 'object', 'object_', 'p', 'q', 'short', 'single', 'str', 'str_', 'string', 'string[pyarrow]', 'string[python]', 'timedelta64[ms]', 'timedelta64[ns]', 'timedelta64[s]', 'timedelta64[us]', 'timestamp[ms][pyarrow]', 'timestamp[ns][pyarrow]', 'timestamp[s][pyarrow]', 'timestamp[us][pyarrow]', 'u1', 'u2', 'u4', 'u8', 'ubyte', 'uint', 'uint16', 'uint16[pyarrow]', 'uint32', 'uint32[pyarrow]', 'uint64', 'uint64[pyarrow]', 'uint8', 'uint8[pyarrow]', 'uintc', 'uintp', 'ulong', 'ulonglong', 'unicode', 'ushort', 'void'] | BooleanDtype | CategoricalDtype | ExtensionDtype | Float32Dtype | Float64Dtype | Int16Dtype | Int32Dtype | Int64Dtype | Int8Dtype | Mapping[Any, Dtype] | Series[Any] | StringDtype[Literal['pyarrow']] | StringDtype[Literal['python']] | StringDtype[None] | UInt16Dtype | UInt32Dtype | UInt64Dtype | UInt8Dtype | dtype[generic[Any]] | type[builtins.bool] | type[numpy.bool[builtins.bool]] | type[bytes] | type[bytes_] | type[complex] | type[complex128] | type[complexfloating[_NBitLongDouble, _NBitLongDouble]] | type[complexfloating[_32Bit, _32Bit]] | type[float] | type[float64] | type[floating[_NBitLongDouble]] | type[floating[_16Bit]] | type[floating[_32Bit]] | type[int] | type[object] | type[object_] | type[signedinteger[_NBitIntP]] | type[signedinteger[_16Bit]] | type[signedinteger[_32Bit]] | type[signedinteger[_64Bit]] | type[signedinteger[_8Bit]] | type[str] | type[str_] | type[unsignedinteger[_NBitIntP]] | type[unsignedinteger[_16Bit]] | type[unsignedinteger[_32Bit]] | type[unsignedinteger[_64Bit]] | type[unsignedinteger[_8Bit]] | type[void]` in function `pandas.core.frame.DataFrame.astype` [bad-argument-type]
+ ERROR pandera/api/pandas/model.py:210:13-73: Argument `dict[Any, Any | None]` is not assignable to parameter `dtype` with type `Literal['<M8[ms]', '<M8[ns]', '<M8[s]', '<M8[us]', '<f2', '<m8[ms]', '<m8[ns]', '<m8[s]', '<m8[us]', '?', 'B', 'D', 'F', 'Float32', 'Float64', 'G', 'H', 'I', 'Int16', 'Int32', 'Int64', 'Int8', 'L', 'M8[ms]', 'M8[ns]', 'M8[s]', 'M8[us]', 'O', 'P', 'Q', 'S', 'U', 'UInt16', 'UInt32', 'UInt64', 'UInt8', 'V', 'b', 'b1', 'binary[pyarrow]', 'bool', 'bool[pyarrow]', 'bool_', 'boolean', 'boolean[pyarrow]', 'byte', 'bytes', 'bytes_', 'c16', 'c32', 'c8', 'category', 'cdouble', 'clongdouble', 'complex', 'complex128', 'complex256', 'complex64', 'csingle', 'd', 'date32[pyarrow]', 'date64[pyarrow]', 'datetime64[ms, UTC]', 'datetime64[ms]', 'datetime64[ns, UTC]', 'datetime64[ns]', 'datetime64[s, UTC]', 'datetime64[s]', 'datetime64[us, UTC]', 'datetime64[us]', 'double', 'double[pyarrow]', 'duration[ms][pyarrow]', 'duration[ns][pyarrow]', 'duration[s][pyarrow]', 'duration[us][pyarrow]', 'e', 'f', 'f16', 'f2', 'f4', 'f8', 'float', 'float128', 'float16', 'float16[pyarrow]', 'float32', 'float32[pyarrow]', 'float64', 'float64[pyarrow]', 'float[pyarrow]', 'g', 'h', 'half', 'i', 'i1', 'i2', 'i4', 'i8', 'int', 'int16', 'int16[pyarrow]', 'int32', 'int32[pyarrow]', 'int64', 'int64[pyarrow]', 'int8', 'int8[pyarrow]', 'int_', 'intc', 'intp', 'l', 'long', 'longdouble', 'longlong', 'm8[ms]', 'm8[ns]', 'm8[s]', 'm8[us]', 'object', 'object_', 'p', 'q', 'short', 'single', 'str', 'str_', 'string', 'string[pyarrow]', 'string[python]', 'timedelta64[ms]', 'timedelta64[ns]', 'timedelta64[s]', 'timedelta64[us]', 'timestamp[ms][pyarrow]', 'timestamp[ns][pyarrow]', 'timestamp[s][pyarrow]', 'timestamp[us][pyarrow]', 'u1', 'u2', 'u4', 'u8', 'ubyte', 'uint', 'uint16', 'uint16[pyarrow]', 'uint32', 'uint32[pyarrow]', 'uint64', 'uint64[pyarrow]', 'uint8', 'uint8[pyarrow]', 'uintc', 'uintp', 'ulong', 'ulonglong', 'unicode', 'ushort', 'void'] | BooleanDtype | CategoricalDtype | ExtensionDtype | Float32Dtype | Float64Dtype | Int16Dtype | Int32Dtype | Int64Dtype | Int8Dtype | Mapping[Any, Dtype] | Series | StringDtype[Literal['pyarrow']] | StringDtype[Literal['python']] | StringDtype | UInt16Dtype | UInt32Dtype | UInt64Dtype | UInt8Dtype | dtype[generic] | type[builtins.bool] | type[numpy.bool] | type[bytes] | type[bytes_] | type[complex] | type[complex128] | type[complexfloating[_NBitLongDouble, _NBitLongDouble]] | type[complexfloating[_32Bit, _32Bit]] | type[float] | type[float64] | type[floating[_NBitLongDouble]] | type[floating[_16Bit]] | type[floating[_32Bit]] | type[int] | type[object] | type[object_] | type[signedinteger[_NBitIntP]] | type[signedinteger[_16Bit]] | type[signedinteger[_32Bit]] | type[signedinteger[_64Bit]] | type[signedinteger[_8Bit]] | type[str] | type[str_] | type[unsignedinteger[_NBitIntP]] | type[unsignedinteger[_16Bit]] | type[unsignedinteger[_32Bit]] | type[unsignedinteger[_64Bit]] | type[unsignedinteger[_8Bit]] | type[void]` in function `pandas.core.frame.DataFrame.astype` [bad-argument-type]
... (truncated 727 lines) ...``` |
| ); | ||
|
|
||
| testcase!( | ||
| test_wysiwyg_partial_generic_one_default, |
There was a problem hiding this comment.
I think I'd prefer if we renamed the tests to compact_display or something like that instead of wysiwyg, to avoid it being misleading
There was a problem hiding this comment.
I can patch that after import. the rest of it looks fine to me
Summary
TArgs::display_count()method that strips trailing default-matching args at display timeExamples
Generator[str, None, None]Generator[str]AsyncGenerator[int, None]AsyncGenerator[int]ExceptionGroup[Exception]ExceptionGroupMyClass[float, bool](non-defaults)MyClass[float, bool](unchanged)Closes #2461
Test plan
generic_legacy.rscovering bare generic, partial, full, no-defaults, and invalid-order scenariosyields.rs,contextual.rs,flow_branching.rs,operators.rs,constructors.rs