-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix some i
8000
ssues in _thread.pyi
#12433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
def exit() -> NoReturn: ... | ||
def allocate_lock() -> LockType: ... | ||
def get_ident() -> int: ... | ||
def stack_size(size: int = 0, /) -> int: ... | ||
|
||
if sys.version_info >= (3, 13): | ||
def start_joinable_thread( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is for internal use only, so I'm not sure whether it should be exposed in typings. The current docs says:
*For internal use only*: start a new thread.
Like start_new_thread(), this starts a new thread calling the given function.
Unlike start_new_thread(), this returns a handle object with methods to join
or detach the given thread.
This function is not for third-party code, please use the
`threading` module instead. During finalization the runtime will not wait for
the thread to exit if daemon is True. If handle is provided it must be a
newly created thread._ThreadHandle instance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The entire module is only for internal use, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but this one seems to be even more internal. I'm not really sure we want to add something that looks public in the internal module but should really not be used at all (especially with this kind of comment...). For instance, we didn't add _make_thread_handle
because it was correctly prefixed by _
(I think start_new_thread
doesn't have an underscore because of historical reasons).
Diff from mypy_primer, showing the effect of this PR on open source code: hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- src/hydra_zen/structured_configs/_implementations.py:1130: note: def [R, P`2069] builds(cls, type[BuildsWithSig[type[R], P]], /, *, zen_partial: Literal[False] | None = ..., populate_full_signature: Literal[True], zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[()] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ...) -> type[BuildsWithSig[type[R], P]]
+ src/hydra_zen/structured_configs/_implementations.py:1130: note: def [R, P`2071] builds(cls, type[BuildsWithSig[type[R], P]], /, *, zen_partial: Literal[False] | None = ..., populate_full_signature: Literal[True], zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[()] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ...) -> type[BuildsWithSig[type[R], P]]
- src/hydra_zen/structured_configs/_implementations.py:1130: note: def [P`2071, R] builds(cls, Callable[P, R], /, *, zen_partial: Literal[False] | None = ..., populate_full_signature: Literal[True], zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[()] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ...) -> type[BuildsWithSig[type[R], P]]
+ src/hydra_zen/structured_configs/_implementations.py:1130: note: def [P`2073, R] builds(cls, Callable[P, R], /, *, zen_partial: Literal[False] | None = ..., populate_full_signature: Literal[True], zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[()] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ...) -> type[BuildsWithSig[type[R], P]]
- src/hydra_zen/structured_configs/_implementations.py:1130: note: def [P`2086, R, Importable] builds(cls, Callable[P, R] | type[Builds[Importable]] | Importable, /, *pos_args: T, zen_partial: bool | None, populate_full_signature: bool = ..., zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[type[DataClass_], ...] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ..., **kwargs_for_target: T) -> type[Builds[Importable]] | type[ZenPartialBuilds[Importable]] | type[HydraPartialBuilds[Importable]] | type[BuildsWithSig[type[R], P]]
+ src/hydra_zen/structured_configs/_implementations.py:1130: note: def [P`2088, R, Importable] builds(cls, Callable[P, R] | type[Builds[Importable]] | Importable, /, *pos_args: T, zen_partial: bool | None, populate_full_signature: bool = ..., zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[type[DataClass_], ...] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ..., **kwargs_for_target: T) -> type[Builds[Importable]] | type[ZenPartialBuilds[Importable]] | type[HydraPartialBuilds[Importable]] | type[BuildsWithSig[type[R], P]]
- src/hydra_zen/structured_configs/_implementations.py:1130: note: def [R, P`3828] builds(cls, type[BuildsWithSig[type[R], P]], /, *, zen_partial: Literal[False] | None = ..., populate_full_signature: Literal[True], zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[()] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ...) -> type[BuildsWithSig[type[R], P]]
+ src/hydra_zen/structured_configs/_implementations.py:1130: note: def [R, P`3830] builds(cls, type[BuildsWithSig[type[R], P]], /, *, zen_partial: Literal[False] | None = ..., populate_full_signature: Literal[True], zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[()] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ...) -> type[BuildsWithSig[type[R], P]]
- src/hydra_zen/structured_configs/_implementations.py:1130: note: def [P`3830, R] builds(cls, Callable[P, R], /, *, zen_partial: Literal[False] | None = ..., populate_full_signature: Literal[True], zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[()] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ...) -> type[BuildsWithSig[type[R], P]]
+ src/hydra_zen/structured_configs/_implementations.py:1130: note: def [P`3832, R] builds(cls, Callable[P, R], /, *, zen_partial: Literal[False] | None = ..., populate_full_signature: Literal[True], zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[()] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ...) -> type[BuildsWithSig[type[R], P]]
- src/hydra_zen/structured_configs/_implementations.py:1130: note: def [P`3845, R, Importable] builds(cls, Callable[P, R] | type[Builds[Importable]] | Importable, /, *pos_args: T, zen_partial: bool | None, populate_full_signature: bool = ..., zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[type[DataClass_], ...] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ..., **kwargs_for_target: T) -> type[Builds[Importable]] | type[ZenPartialBuilds[Importable]] | type[HydraPartialBuilds[Importable]] | type[BuildsWithSig[type[R], P]]
+ src/hydra_zen/structured_configs/_implementations.py:1130: note: def [P`3847, R, Importable] builds(cls, Callable[P, R] | type[Builds[Importable]] | Importable, /, *pos_args: T, zen_partial: bool | None, populate_full_signature: bool = ..., zen_wrappers: Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None | Sequence[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]] | ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]] | Just[Callable[[Callable[..., Any]], Callable[..., Any]]] | type[Builds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[ZenPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[HydraPartialBuilds[Callable[[Callable[..., Any]], Callable[..., Any]]]] | type[Just[Callable[[Callable[..., Any]], Callable[..., Any]]]] | Callable[[Callable[..., Any]], Callable[..., Any]] | str | None] = ..., zen_meta: Mapping[str, SupportedPrimitive] | None = ..., hydra_recursive: bool | None = ..., hydra_convert: Literal['none', 'partial', 'all', 'object'] | None = ..., hydra_defaults: list[str | DataClass_ | type[DataClass_] | Mapping[str, str | Sequence[str] | None]] | None = ..., dataclass_name: str | None = ..., builds_bases: tuple[type[DataClass_], ...] = ..., zen_dataclass: DataclassOptions | None = ..., frozen: bool = ..., zen_convert: ZenConvert | None = ..., **kwargs_for_target: T) -> type[Builds[Importable]] | type[ZenPartialBuilds[Importable]] | type[HydraPartialBuilds[Importable]] | type[BuildsWithSig[type[R], P]]
core (https://github.com/home-assistant/core)
- usage: mypy [-h] [-v] [-V] [more options; see below]
- [-m MODULE] [-p PACKAGE] [-c PROGRAM_TEXT] [files ...]
- mypy: error: Unknown incomplete feature: NewGenericSyntax
+ homeassistant/util/enum.py:11: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/enum.py:11: error: Name "_T" is not defined [name-defined]
+ homeassistant/util/enum.py:19: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/enum.py:19: error: Name "_EnumT" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:33: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:33: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:35: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:35: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:41: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:42: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:45: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:45: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:51: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:52: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:53: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:55: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:55: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:63: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:63: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:65: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:66: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:66: error: Name "_U" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:67: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:67: error: Name "_U" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:69: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:69: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:71: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:71: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:71: error: Name "_U" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:79: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:79: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:81: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:82: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:83: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:85: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:86: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:86: error: Name "_U" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:87: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:87: error: Name "_U" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:89: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:89: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:91: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:91: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:93: error: Overloaded function signature 6 will never be matched: signature 5's parameter type(s) are the same or broader [misc]
+ homeassistant/util/hass_dict.pyi:93: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:93: error: Name "_S" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:93: error: Name "_U" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:97: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/hass_dict.pyi:97: error: Name "_U" is not defined [name-defined]
+ homeassistant/util/hass_dict.pyi:112: error: Expression is of type "dict[str, Any]", not "dict[str, int]" [assert-type]
+ homeassistant/util/hass_dict.pyi:113: error: Expression is of type "Any", not "int" [assert-type]
+ homeassistant/util/hass_dict.pyi:114: error: Expression is of type "Any", not "int" [assert-type]
+ homeassistant/util/hass_dict.pyi:115: error: Expression is of type "Any", not "dict[int, bool]" [assert-type]
+ homeassistant/util/hass_dict.pyi:121: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/util/hass_dict.pyi:123: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/util/hass_dict.pyi:124: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/util/hass_dict.pyi:126: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/util/hass_dict.pyi:128: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/util/hass_dict.pyi:133: error: Expression is of type "dict[str, Any] | None", not "dict[str, int] | None" [assert-type]
+ homeassistant/util/hass_dict.pyi:134: error: Expression is of type "dict[str, Any] | Any", not "dict[str, int] | bool" [assert-type]
+ homeassistant/util/hass_dict.pyi:135: error: Expression is of type "Any | None", not "int | None" [assert-type]
+ homeassistant/util/hass_dict.pyi:136: error: Expression is of type "Any", not "int | bool" [assert-type]
+ homeassistant/util/hass_dict.pyi:137: error: Expression is of type "Any | None", not "dict[int, bool] | None" [assert-type]
+ homeassistant/util/hass_dict.pyi:138: error: Expression is of type "Any", not "dict[int, bool]" [assert-type]
+ homeassistant/util/hass_dict.pyi:139: error: Expression is of type "Any | None", not "set[str] | None" [assert-type]
+ homeassistant/util/hass_dict.pyi:140: error: Expression is of type "Any", not "set[str]" [assert-type]
+ homeassistant/util/hass_dict.pyi:146: error: Expression is of type "dict[str, Any]", not "dict[str, int]" [assert-type]
+ homeassistant/util/hass_dict.pyi:147: error: Expression is of type "Any", not "int" [assert-type]
+ homeassistant/util/hass_dict.pyi:148: error: Expression is of type "Any", not "int" [assert-type]
+ homeassistant/util/hass_dict.pyi:149: error: Expression is of type "Any", not "dict[int, bool]" [assert-type]
+ homeassistant/util/hass_dict.pyi:150: error: Expression is of type "Any", not "bool" [assert-type]
+ homeassistant/util/hass_dict.pyi:151: error: Expression is of type "Any", not "set[str]" [assert-type]
+ homeassistant/util/hass_dict.pyi:155: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/util/hass_dict.pyi:157: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/util/hass_dict.pyi:159: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/util/hass_dict.pyi:161: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/util/hass_dict.pyi:169: error: Expression is of type "dict[str, Any]", not "dict[str, int]" [assert-type]
+ homeassistant/util/hass_dict.pyi:170: error: Expression is of type "dict[str, Any]", not "dict[str, int]" [assert-type]
+ homeassistant/util/hass_dict.pyi:171: error: Expression is of type "dict[str, Any] | Any", not "dict[str, int] | int" [assert-type]
+ homeassistant/util/hass_dict.pyi:172: error: Expression is of type "Any", not "int" [assert-type]
+ homeassistant/util/hass_dict.pyi:173: error: Expression is of type "Any", not "int" [assert-type]
+ homeassistant/util/hass_dict.pyi:174: error: Expression is of type "Any", not "int | str" [assert-type]
+ homeassistant/util/hass_dict.pyi:175: error: Expression is of type "Any", not "dict[int, bool]" [assert-type]
+ homeassistant/util/hass_dict.pyi:176: error: Expression is of type "Any", not "dict[int, bool]" [assert-type]
+ homeassistant/util/hass_dict.pyi:177: error: Expression is of type "Any", not "dict[int, bool] | int" [assert-type]
+ homeassistant/util/hass_dict.pyi:178: error: Expression is of type "Any", not "set[str]" [assert-type]
+ homeassistant/util/hass_dict.pyi:179: error: Expression is of type "Any", not "set[str]" [assert-type]
+ homeassistant/util/hass_dict.pyi:181: error: Expression is of type "Any", not "Any | bool" [assert-type]
+ homeassistant/helpers/service_info/bluetooth.py:3: error: Cannot find implementation or library stub for module named "home_assistant_bluetooth" [import-not-found]
+ homeassistant/components/zeroconf/models.py:3: error: Cannot find implementation or library stub for module named "zeroconf" [import-not-found]
+ homeassistant/components/zeroconf/models.py:4: error: Cannot find implementation or library stub for module named "zeroconf.asyncio" [import-not-found]
+ homeassistant/components/xiaomi_miio/typing.py:5: error: Cannot find implementation or library stub for module named "voluptuous" [import-not-found]
+ homeassistant/components/xiaomi_miio/const.py:3: error: Cannot find implementation or library stub for module named "miio.integrations.vacuum.roborock.vacuum" [import-not-found]
+ homeassistant/components/whirlpool/const.py:3: error: Cannot find implementation or library stub for module named "whirlpool.backendselector" [import-not-found]
+ homeassistant/components/vulcan/register.py:3: error: Cannot find implementation or library stub for module named "vulcan" [import-not-found]
+ homeassistant/components/tts/const.py:21: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/components/tolo/const.py:5: error: Cannot find implementation or library stub for module named "tololib" [import-not-found]
+ homeassistant/components/system_bridge/data.py:5: error: Cannot find implementation or library stub for module named "systembridgemodels.modules" [import-not-found]
+ homeassistant/components/system_bridge/const.py:5: error: Cannot find implementation or library stub for module named "systembridgemodels.modules" [import-not-found]
+ homeassistant/components/switchbot/const.py:5: error: Cannot find implementation or library stub for module named "switchbot" [import-not-found]
+ homeassistant/components/switchbee/const.py:3: error: Cannot find implementation or library stub for module named "switchbee.api" [import-not-found]
+ homeassistant/components/steamist/const.py:3: error: Cannot find implementation or library stub for module named "aiohttp" [import-not-found]
+ homeassistant/components/snooz/models.py:5: error: Cannot find implementation or library stub for module named "bleak.backends.device" [import-not-found]
+ homeassistant/components/snooz/models.py:6: error: Cannot find implementation or library stub for module named "pysnooz.device" [import-not-found]
+ homeassistant/components/smarttub/helpers.py:3: error: Cannot find implementation or library stub for module named "smarttub" [import-not-found]
+ homeassistant/components/simplisafe/typing.py:3: error: Cannot find implementation or library stub for module named "simplipy.system.v2" [import-not-found]
+ homeassistant/components/simplisafe/typing.py:4: error: Cannot find implementation or library stub for module named "simplipy.system.v3" [import-not-found]
+ homeassistant/components/simplisafe/typing.py:6: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/components/screenlogic/data.py:3: error: Cannot find implementation or library stub for module named "screenlogicpy.const.data" [import-not-found]
+ homeassistant/components/roborock/models.py:6: error: Cannot find implementation or library stub for module named "roborock.containers" [import-not-found]
+ homeassistant/components/roborock/models.py:7: error: Cannot find implementation or library stub for module named "roborock.roborock_typing" [import-not-found]
+ homeassistant/components/remote_rpi_gpio/__init__.py:3: error: Cannot find implementation or library stub for module named "gpiozero" [import-not-found]
+ homeassistant/components/remote_rpi_gpio/__init__.py:4: error: Cannot find implementation or library stub for module named "gpiozero.pins.pigpio" [import-not-found]
+ homeassistant/components/pvpc_hourly_pricing/const.py:3: error: Cannot find implementation or library stub for module named "aiopvpc.const" [import-not-found]
+ homeassistant/components/pvpc_hourly_pricing/const.py:4: error: Cannot find implementation or library stub for module named "voluptuous" [import-not-found]
+ homeassistant/components/owntracks/helper.py:4: error: Cannot find implementation or library stub for module named "nacl" [import-not-found]
+ homeassistant/components/owntracks/helper.py:6: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/components/oncue/const.py:3: error: Cannot find implementation or library stub for module named "aiohttp" [import-not-found]
+ homeassistant/components/oncue/const.py:4: error: Cannot find implementation or library stub for module named "aiooncue" [import-not-found]
+ homeassistant/components/ollama/models.py:6: error: Cannot find implementation or library stub for module named "ollama" [import-not-found]
+ homeassistant/components/notion/model.py:5: error: Cannot find implementation or library stub for module named "aionotion.listener.models" [import-not-found]
+ homeassistant/components/nest/events.py:3: error: Cannot find implementation or library stub for module named "google_nest_sdm.camera_traits" [import-not-found]
+ homeassistant/components/nest/events.py:8: error: Cannot find implementation or library stub for module named "google_nest_sdm.doorbell_traits" [import-not-found]
+ homeassistant/components/nest/events.py:9: error: Cannot find implementation or library stub for module named "google_nest_sdm.event" [import-not-found]
+ homeassistant/components/mystrom/models.py:6: error: Cannot find implementation or library stub for module named "pymystrom.bulb" [import-not-found]
+ homeassistant/components/mystrom/models.py:7: error: Cannot find implementation or library stub for module named "pymystrom.switch" [import-not-found]
+ homeassistant/components/mopeka/const.py:5: error: Cannot find implementation or library stub for module named "mopeka_iot_ble" [import-not-found]
+ homeassistant/components/lyric/const.py:3: error: Cannot find implementation or library stub for module named "aiohttp.client_exceptions" [import-not-found]
+ homeassistant/components/lyric/const.py:4: error: Cannot find implementation or library stub for module named "aiolyric.exceptions" [import-not-found]
+ homeassistant/components/lupusec/const.py:3: error: Cannot find implementation or library stub for module named "lupupy.constants" [import-not-found]
+ homeassistant/components/hvv_departures/hub.py:3: error: Cannot find implementation or library stub for module named "pygti.gti" [import-not-found]
+ homeassistant/components/hunterdouglas_powerview/const.py:3: error: Cannot find implementation or library stub for module named "aiohttp.client_exceptions" [import-not-found]
+ homeassistant/components/hunterdouglas_powerview/const.py:4: error: Cannot find implementation or library stub for module named "aiopvapi.helpers.aiorequest" [import-not-found]
+ homeassistant/components/huisbaasje/const.py:3: error: Cannot find implementation or library stub for module named "energyflip.const" [import-not-found]
+ homeassistant/components/hue/const.py:3: error: Cannot find implementation or library stub for module named "aiohue.v2.models.button" [import-not-found]
+ homeassistant/components/hue/const.py:4: error: Cannot find implementation or library stub for module named "aiohue.v2.models.relative_rotary" [import-not-found]
+ homeassistant/components/homekit_controller/const.py:3: error: Cannot find implementation or library stub for module named "aiohomekit.exceptions" [import-not-found]
+ homeassistant/components/homekit_controller/const.py:8: error: Cannot find implementation or library stub for module named "aiohomekit.model.characteristics" [import-not-found]
+ homeassistant/components/homekit_controller/const.py:9: error: Cannot find implementation or library stub for module named "aiohomekit.model.services" [import-not-found]
+ homeassistant/components/esphome/enum_mapper.py:5: error: Cannot find implementation or library stub for module named "aioesphomeapi" [import-not-found]
+ homeassistant/components/esphome/enum_mapper.py:8: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/components/esphome/enum_mapper.py:11: error: Name "_EnumT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:11: error: Name "_ValT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:14: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/components/esphome/enum_mapper.py:14: error: Name "_EnumT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:14: note: Error code "name-defined" not covered by "type: ignore" comment
+ homeassistant/components/esphome/enum_mapper.py:14: error: Name "_ValT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:18: error: Name "_ValT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:18: error: Name "_EnumT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:21: error: Name "_EnumT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:21: error: Name "_ValT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:24: error: Overloaded function signature 2 will never be matched: signature 1's parameter type(s) are the same or broader [misc]
+ homeassistant/components/esphome/enum_mapper.py:24: error: Name "_EnumT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:24: error: Name "_ValT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:26: error: Name "_EnumT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:26: error: Name "_ValT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:30: error: Name "_ValT" is not defined [name-defined]
+ homeassistant/components/esphome/enum_mapper.py:30: error: Name "_EnumT" is not defined [name-defined]
+ homeassistant/components/esphome/const.py:3: error: Cannot find implementation or library stub for module named "awesomeversion" [import-not-found]
+ homeassistant/components/ecovacs/const.py:5: error: Cannot find implementation or library stub for module named "deebot_client.events" [import-not-found]
+ homeassistant/components/cloudflare/helpers.py:3: error: Cannot find implementation or library stub for module named "pycfdns" [import-not-found]
+ homeassistant/components/azure_devops/data.py:5: error: Cannot find implementation or library stub for module named "aioazuredevops.models.builds" [import-not-found]
+ homeassistant/components/azure_devops/data.py:6: error: Cannot find implementation or library stub for module named "aioazuredevops.models.core" [import-not-found]
+ homeassistant/auth/permissions/types.py:7: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/auth/permissions/types.py:13: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/auth/permissions/types.py:15: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/auth/permissions/types.py:17: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/auth/permissions/types.py:27: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/util/ulid.py:5: error: Cannot find implementation or library stub for module named "ulid_transform" [import-not-found]
+ homeassistant/util/read_only_dict.py:12: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/read_only_dict.py:12: error: Name "_KT" is not defined [name-defined]
+ homeassistant/util/read_only_dict.py:12: error: Name "_VT" is not defined [name-defined]
+ homeassistant/util/read_only_dict.py:23: error: Name "_KT" is not defined [name-defined]
+ homeassistant/util/read_only_dict.py:23: error: Name "_VT" is not defined [name-defined]
+ homeassistant/util/read_only_dict.py:27: error: Name "_KT" is not defined [name-defined]
+ homeassistant/util/read_only_dict.py:27: error: Name "_VT" is not defined [name-defined]
+ homeassistant/util/network.py:8: error: Cannot find implementation or library stub for module named "yarl" [import-not-found]
+ homeassistant/util/limited_size_dict.py:9: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/limited_size_dict.py:9: error: Name "_KT" is not defined [name-defined]
+ homeassistant/util/limited_size_dict.py:9: error: Name "_VT" is not defined [name-defined]
+ homeassistant/util/limited_size_dict.py:18: error: Name "_KT" is not defined [name-defined]
+ homeassistant/util/limited_size_dict.py:18: error: Name "_VT" is not defined [name-defined]
8000
+ homeassistant/util/decorator.py:9: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/decorator.py:9: error: Name "_KT" is not defined [name-defined]
+ homeassistant/util/decorator.py:9: error: Name "_VT" is not defined [name-defined]
+ homeassistant/util/decorator.py:12: error: Name "_KT" is not defined [name-defined]
+ homeassistant/util/decorator.py:12: error: Name "_VT" is not defined [name-defined]
+ homeassistant/util/decorator.py:15: error: Name "_VT" is not defined [name-defined]
+ homeassistant/components/zwave_me/helpers.py:5: error: Cannot find implementation or library stub for module named "zwave_me_ws" [import-not-found]
+ homeassistant/components/yalexs_ble/models.py:7: error: Cannot find implementation or library stub for module named "yalexs_ble" [import-not-found]
+ homeassistant/components/websocket_api/util.py:5: error: Cannot find implementation or library stub for module named "aiohttp" [import-not-found]
+ homeassistant/components/transmission/const.py:7: error: Cannot find implementation or library stub for module named "transmission_rpc" [import-not-found]
+ homeassistant/components/traccar_server/helpers.py:5: error: Cannot find implementation or library stub for module named "pytraccar" [import-not-found]
+ homeassistant/components/roomba/models.py:7: error: Cannot find implementation or library stub for module named "roombapy" [import-not-found]
+ homeassistant/components/recorder/system_health/sqlite.py:5: error: Cannot find implementation or library stub for module named "sqlalchemy" [import-not-found]
+ homeassistant/components/recorder/system_health/sqlite.py:6: error: Cannot find implementation or library stub for module named "sqlalchemy.orm.session" [import-not-found]
+ homeassistant/components/recorder/system_health/postgresql.py:5: error: Cannot find implementation or library stub for module named "sqlalchemy" [import-not-found]
+ homeassistant/components/recorder/system_health/postgresql.py:6: error: Cannot find implementation or library stub for module named "sqlalchemy.orm.session" [import-not-found]
+ homeassistant/components/recorder/system_health/mysql.py:5: error: Cannot find implementation or library stub for module named "sqlalchemy" [import-not-found]
+ homeassistant/components/recorder/system_health/mysql.py:6: error: Cannot find implementation or library stub for module named "sqlalchemy.orm.session" [import-not-found]
+ homeassistant/components/onvif/util.py:7: error: Cannot find implementation or library stub for module named "zeep.exceptions" [import-not-found]
+ homeassistant/components/modem_callerid/const.py:5: error: Cannot find implementation or library stub for module named "phone_modem" [import-not-found]
+ homeassistant/components/metoffice/data.py:7: error: Cannot find implementation or library stub for module named "datapoint.Forecast" [import-not-found]
+ homeassistant/components/metoffice/data.py:8: error: Cannot find implementation or library stub for module named "datapoint.Site" [import-not-found]
+ homeassistant/components/metoffice/data.py:9: error: Cannot find implementation or library stub for module named "datapoint.Timestep" [import-not-found]
+ homeassistant/components/mealie/utils.py:5: error: Cannot find implementation or library stub for module named "awesomeversion" [import-not-found]
+ homeassistant/components/kraken/utils.py:5: error: Cannot find implementation or library stub for module named "pykrakenapi.pykrakenapi" [import-not-found]
+ homeassistant/components/kraken/const.py:22: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/components/kostal_plenticore/helper.py:8: error: Cannot find implementation or library stub for module named "pykoplenti" [import-not-found]
+ homeassistant/components/fritzbox/model.py:9: error: Cannot find implementation or library stub for module named "pyfritzhome" [import-not-found]
+ homeassistant/components/eufylife_ble/models.py:7: error: Cannot find implementation or library stub for module named "eufylife_ble_client" [import-not-found]
+ homeassistant/components/elkm1/models.py:8: error: Cannot find implementation or library stub for module named "elkm1_lib" [import-not-found]
+ homeassistant/components/canary/model.py:8: error: Cannot find implementation or library stub for module named "canary.model" [import-not-found]
+ homeassistant/components/bluetooth/models.py:8: error: Cannot find implementation or library stub for module named "home_assistant_bluetooth" [import-not-found]
+ homeassistant/components/bluetooth/models.py:11: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/components/bluetooth/models.py:12: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/components/bluetooth/const.py:7: error: Cannot find implementation or library stub for module named "habluetooth" [import-not-found]
+ homeassistant/util/variance.py:12: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/variance.py:13: error: The first argument to Callable must be a list of types, parameter specification, or "..." [valid-type]
+ homeassistant/util/variance.py:13: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
+ homeassistant/util/variance.py:13: error: Name "_P" is not defined [name-defined]
+ homeassistant/util/variance.py:14: error: The first argument to Callable must be a list of types, parameter specification, or "..." [valid-type]
+ homeassistant/util/variance.py:14: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
+ homeassistant/util/variance.py:14: error: Name "_P" is not defined [name-defined]
+ homeassistant/util/variance.py:18: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/variance.py:19: error: The first argument to Callable must be a list of types, parameter specification, or "..." [valid-type]
+ homeassistant/util/variance.py:19: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
+ homeassistant/util/variance.py:19: error: Name "_P" is not defined [name-defined]
+ homeassistant/util/variance.py:20: error: The first argument to Callable must be a list of types, parameter specification, or "..." [valid-type]
+ homeassistant/util/variance.py:20: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
+ homeassistant/util/variance.py:20: error: Name "_P" is not defined [name-defined]
+ homeassistant/util/variance.py:24: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/variance.py:25: error: The first argument to Callable must be a list of types, parameter specification, or "..." [valid-type]
+ homeassistant/util/variance.py:25: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
+ homeassistant/util/variance.py:25: error: Name "_P" is not defined [name-defined]
+ homeassistant/util/variance.py:26: error: The first argument to Callable must be a list of types, parameter specification, or "..." [valid-type]
+ homeassistant/util/variance.py:26: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
+ homeassistant/util/variance.py:26: error: Name "_P" is not defined [name-defined]
+ homeassistant/util/variance.py:29: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/variance.py:30: error: The first argument to Callable must be a list of types, parameter specification, or "..." [valid-type]
+ homeassistant/util/variance.py:30: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
+ homeassistant/util/variance.py:30: error: Name "_P" is not defined [name-defined]
+ homeassistant/util/variance.py:30: error: Name "_R" is not defined [name-defined]
+ homeassistant/util/variance.py:31: error: The first argument to Callable must be a list of types, parameter specification, or "..." [valid-type]
+ homeassistant/util/variance.py:31: note: See https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
+ homeassistant/util/variance.py:31: error: Name "_P" is not defined [name-defined]
+ homeassistant/util/variance.py:31: error: Name "_R" is not defined [name-defined]
+ homeassistant/util/variance.py:33: error: Name "_R" is not defined [name-defined]
+ homeassistant/util/variance.py:36: error: Name "_P" is not defined [name-defined]
+ homeassistant/util/variance.py:36: error: Name "_R" is not defined [name-defined]
+ homeassistant/util/percentage.py:13: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/percentage.py:13: error: Name "_T" is not defined [name-defined]
+ homeassistant/util/percentage.py:36: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/percentage.py:36: error: Name "_T" is not defined [name-defined]
+ homeassistant/components/wiz/const.py:5: error: Cannot find implementation or library stub for module named "pywizlight.exceptions" [import-not-found]
+ homeassistant/components/vallox/const.py:5: error: Cannot find implementation or library stub for module named "vallox_websocket_api" [import-not-found]
+ homeassistant/components/sense/const.py:5: error: Cannot find implementation or library stub for module named "sense_energy" [import-not-found]
+ homeassistant/components/qbittorrent/helpers.py:6: error: Cannot find implementation or library stub for module named "qbittorrentapi" [import-not-found]
+ homeassistant/components/motioneye/const.py:6: error: Cannot find implementation or library stub for module named "motioneye_client.const" [import-not-found]
+ homeassistant/components/iotawatt/const.py:7: error: Cannot find implementation or library stub for module named "httpx" [import-not-found]
+ homeassistant/components/homeassistant_alerts/const.py:5: error: Cannot find implementation or library stub for module named "aiohttp" [import-not-found]
+ homeassistant/components/ecobee/util.py:5: error: Cannot find implementation or library stub for module named "voluptuous" [import-not-found]
+ homeassistant/components/devolo_home_network/const.py:5: error: Cannot find implementation or library stub for module named "devolo_plc_api.device_api" [import-not-found]
+ homeassistant/util/dt.py:13: error: Cannot find implementation or library stub for module named "aiozoneinfo" [import-not-found]
+ homeassistant/util/dt.py:14: error: Cannot find implementation or library stub for module named "ciso8601" [import-not-found]
+ homeassistant/components/wiz/utils.py:5: error: Cannot find implementation or library stub for module named "pywizlight" [import-not-found]
+ homeassistant/components/wiz/utils.py:6: error: Cannot find implementation or library stub for module named "pywizlight.bulblibrary" [import-not-found]
+ homeassistant/components/twentemilieu/const.py:7: error: Cannot find implementation or library stub for module named "twentemilieu" [import-not-found]
+ homeassistant/components/tesla_fleet/const.py:8: error: Cannot find implementation or library stub for module named "tesla_fleet_api.const" [import-not-found]
+ homeassistant/components/sonos/statistics.py:7: error: Cannot find implementation or library stub for module named "soco.data_structures_entry" [import-not-found]
+ homeassistant/components/sonos/statistics.py:8: error: Cannot find implementation or library stub for module named "soco.events_base" [import-not-found]
+ homeassistant/components/onvif/const.py:5: error: Cannot find implementation or library stub for module named "httpx" [import-not-found]
+ homeassistant/components/onvif/const.py:6: error: Cannot find implementation or library stub for module named "onvif.exceptions" [import-not-found]
+ homeassistant/components/onvif/const.py:7: error: Cannot find implementation or library stub for module named "zeep.exceptions" [import-not-found]
+ homeassistant/components/mealie/const.py:5: error: Cannot find implementation or library stub for module named "awesomeversion" [import-not-found]
+ homeassistant/components/geocaching/const.py:9: error: Cannot find implementation or library stub for module named "geocachingapi.models" [import-not-found]
+ homeassistant/components/denonavr/receiver.py:8: error: Cannot find implementation or library stub for module named "denonavr" [import-not-found]
+ homeassistant/components/denonavr/receiver.py:9: error: Cannot find implementation or library stub for module named "httpx" [import-not-found]
+ homeassistant/components/comelit/const.py:5: error: Cannot find implementation or library stub for module named "aiocomelit.const" [import-not-found]
+ homeassistant/components/assist_pipeline/audio_enhancer.py:7: error: Cannot find implementation or library stub for module named "pymicro_vad" [import-not-found]
+ homeassistant/components/analytics/const.py:6: error: Cannot find implementation or library stub for module named "voluptuous" [import-not-found]
+ homeassistant/components/airgradient/const.py:5: error: Cannot find implementation or library stub for module named "airgradient" [import-not-found]
+ homeassistant/components/wilight/support.py:10: error: Cannot find implementation or library stub for module named "voluptuous" [import-not-found]
+ homeassistant/components/mastodon/utils.py:5: error: Cannot find implementation or library stub for module named "mastodon" [import-not-found]
+ homeassistant/util/yaml/objects.py:8: error: Cannot find implementation or library stub for module named "voluptuous" [import-not-found]
+ homeassistant/util/yaml/objects.py:9: error: Cannot find implementation or library stub for module named "voluptuous.schema_builder" [import-not-found]
+ homeassistant/util/yaml/objects.py:32: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/util/yaml/dumper.py:41: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/components/minio/minio_helper.py:15: error: Cannot find implementation or library stub for module named "minio" [import-not-found]
+ homeassistant/util/package.py:15: error: Cannot find implementation or library stub for module named "packaging.requirements" [import-not-found]
+ homeassistant/util/package.py:77: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/util/__init__.py:61: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/__init__.py:62: error: Name "_T" is not defined [name-defined]
+ homeassistant/util/__init__.py:62: error: Name "_U" is not defined [name-defined]
+ homeassistant/util/__init__.py:63: error: Name "_U" is not defined [name-defined]
+ homeassistant/util/__init__.py:186: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/components/recorder/executor.py:50: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/components/http/web_runner.py:8: error: Cannot find implementation or library stub for module named "aiohttp" [import-not-found]
+ homeassistant/components/http/web_runner.py:9: error: Cannot find implementation or library stub for module named "yarl" [import-not-found]
+ homeassistant/components/http/web_runner.py:62: error: Trying to assign name "_server" that is not in "__slots__" of type "homeassistant.components.http.web_runner.HomeAssistantTCPSite" [misc]
+ homeassistant/components/dlink/data.py:9: error: Cannot find implementation or library stub for module named "pyW215.pyW215" [import-not-found]
+ homeassistant/components/conversation/trace.py:81: error: "LimitedSizeDict" expects no type arguments, but 2 given [type-arg]
+ homeassistant/components/recorder/table_managers/__init__.py:7: error: Cannot find implementation or library stub for module named "lru" [import-not-found]
+ homeassistant/components/recorder/table_managers/__init__.py:15: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/components/recorder/table_managers/__init__.py:28: error: Name "_DataT" is not defined [name-defined]
+ homeassistant/components/recorder/table_managers/__init__.py:38: error: Name "_DataT" is not defined [name-defined]
+ homeassistant/components/recorder/table_managers/__init__.py:56: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/components/recorder/table_managers/__init__.py:56: error: "BaseTableManager" expects no type arguments, but 1 given [type-arg]
+ homeassistant/components/recorder/table_managers/__init__.py:56: error: Name "_DataT" is not defined [name-defined]
+ homeassistant/components/camera/img_util.py:14: error: Cannot find implementation or library stub for module named "turbojpeg" [import-not-found]
+ homeassistant/auth/permissions/util.py:13: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/auth/permissions/util.py:14: error: PEP 695 type aliases are not yet supported [valid-type]
+ homeassistant/auth/permissions/util.py:113: error: Unused "type: ignore" comment [unused-ignore]
+ homeassistant/auth/permissions/entities.py:8: error: Cannot find implementation or library stub for module named "voluptuous" [import-not-found]
+ homeassistant/auth/permissions/__init__.py:7: error: Cannot find implementation or library stub for module named "voluptuous" [import-not-found]
+ homeassistant/util/async_.py:17: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/async_.py:18: error: Name "_T" is not defined [name-defined]
+ homeassistant/util/async_.py:22: error: Name "_T" is not defined [name-defined]
+ homeassistant/util/async_.py:45: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/async_.py:46: error: Name "_Ts" is not defined [name-defined]
+ homeassistant/util/async_.py:46: error: Name "_T" is not defined [name-defined]
+ homeassistant/util/async_.py:47: error: Name "_T" is not defined [name-defined]
+ homeassistant/util/async_.py:55: error: Name "_T" is not defined [name-defined]
+ homeassistant/util/signal_type.pyi:11: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/signal_type.pyi:21: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/signal_type.pyi:21: error: Name "_Ts" is not defined [name-defined]
+ homeassistant/util/signal_type.pyi:24: error: PEP 695 generics are not yet supported [valid-type]
+ homeassistant/util/signal_type.pyi:24: error: Name "_Ts" is not defined [name-defined]
+ homeassistant/util/signal_type.pyi:27: error: Name "_Ts" is not defined [name-defined]
+ homeassistant/util/signal_type.pyi:47: error: Cannot determine type of "async_dispatcher_connect" [has-type]
+ homeassistant/util/signal_type.pyi:48: error: Cannot determine type of "async_dispatcher_connect" [has-type]
+ homeassistant/util/signal_type.pyi:49: error: Cannot determine type of "async_dispatcher_send" [has-type]
+ homeassistant/util/signal_type.pyi:50: error: Cannot determine t
... (truncated 14785 lines) ... |
Seems to have been addressed here: #12586 |
Adds a
signum
parameter tointerrupt_main
.Adds
start_joinable_thread
. The function takes 3 positional-or-keyword arguments:function
,handle
anddaemon
: source.function
is callable same as instart_new_thread
.handle
is a_thread._ThreadHandle
object defined here. It has a propertyident
and 3 methods:join(timeout)
,_set_done()
andis_done()
.daemon
can be anything but it is internally coerced to a boolean.The function returns a
_thread._ThreadHandle
instance.