hass-core/homeassistant/util
Marc Mueller a0e6fd6ec5
Add improved typing for event fire and listen methods (#114906)
* Add EventType implementation

* Update integrations for EventType

* Change state_changed to EventType

* Fix tests

* Remove runtime impact

* Add tests

* Move to stub file

* Apply pre-commit to stub files

* Fix ruff PYI checks

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2024-04-07 13:28:24 -10:00
..
yaml Add first batch of Ruff PYI rules (#115100) 2024-04-07 11:30:50 -10:00
__init__.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
aiohttp.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
async_.py Detect blocking module imports in the event loop (#114488) 2024-03-30 19:51:31 -10:00
color.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
decorator.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
dt.py Add first batch of Ruff PYI rules (#115100) 2024-04-07 11:30:50 -10:00
enum.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
event_type.py Add improved typing for event fire and listen methods (#114906) 2024-04-07 13:28:24 -10:00
event_type.pyi Add improved typing for event fire and listen methods (#114906) 2024-04-07 13:28:24 -10:00
executor.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
file.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
frozen_dataclass_compat.py Drop Python 3.11 support (#114220) 2024-03-26 12:51:14 +01:00
json.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
language.py Enable Ruff RSE (#113695) 2024-03-18 00:40:38 +01:00
limited_size_dict.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
location.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
logging.py Remove prepare override in HomeAssistantQueueHandler (#115064) 2024-04-06 13:53:36 -10:00
loop.py Detect blocking module imports in the event loop (#114488) 2024-03-30 19:51:31 -10:00
network.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
package.py Enable Ruff RET504 (#114528) 2024-04-06 11:07:37 +02:00
percentage.py Allow float for int argument type [pylint plugin] (#114105) 2024-03-27 11:51:27 +01:00
pil.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
process.py Move disallow-any-generics to mypy.ini (#63917) 2022-01-11 13:33:25 -08:00
read_only_dict.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
scaling.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
signal_type.py Add first batch of Ruff PYI rules (#115100) 2024-04-07 11:30:50 -10:00
ssl.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
thread.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
timeout.py Enable Ruff RET504 (#114528) 2024-04-06 11:07:37 +02:00
ulid.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
unit_conversion.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
unit_system.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
uuid.py Improve performance of generating non-cryptographically secure uuids (#41314) 2020-10-07 16:37:01 +02:00
variance.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00