Commit Graph

14 Commits

Author SHA1 Message Date
Marc Mueller
abc256fb3e Add overload for async singleton call with HassKey (#134059) 2025-01-17 19:22:48 +01:00
Marc Mueller
907b9c42e5 Use PEP 695 for decorator typing with type aliases (2) (#117663) 2024-05-18 11:41:46 +02:00
Marc Mueller
3d700e2b71 Add HassDict implementation (#103844) 2024-05-07 10:53:13 +02:00
J. Nick Koston
ab2ea6100c Speed up singleton decorator so it can be used more places (#116292) 2024-04-28 12:11:08 -05:00
Marc Mueller
19ab3d6daf Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
Marc Mueller
86792fcc2f Update mypy to 1.4.0 (#94987) 2023-06-21 16:12:51 +02:00
Marc Mueller
ac858cc2b5 Improve singleton helper typing (#75461)
* Improve singleton helper typing

* Fix type errors
2022-07-21 00:19:02 +02:00
Marc Mueller
eae0c75620 Make TypeVars private (2) (#68206) 2022-03-17 19:09:55 +01:00
Marc Mueller
12757a8cd2 Update typing - collections.abc (1) (#63933)
* Update typing - collections.abc (1)

* Additional typing updates
2022-01-12 07:56:35 +01:00
Paulus Schoutsen
8a611eb640 Fix singleton not working with falsey values (#56072) 2021-09-11 12:02:01 -07:00
Marc Mueller
6fb2e63e49 Update typing 02 (#48014) 2021-03-17 18:34:19 +01:00
Paulus Schoutsen
6ab9b7355f Add tests for singleton decorator (#42055) 2020-10-18 22:41:22 +02:00
Paulus Schoutsen
e54e9279e3 Extract instance ID helper from updater (#35043) 2020-05-04 11:23:12 -07:00
Paulus Schoutsen
6056753a9c Introduce a singleton decorator (#34803) 2020-04-30 16:47:14 -07:00