Commit Graph

20 Commits (52561ce0769ddcf1e8688c8909692b66495e524b)

Author SHA1 Message Date
Marc Mueller 93cbb331e5
Update Mypy to 0.950 ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-27 20:49:54 -05:00
Marc Mueller 8d2fb72cc3
Add type ignore error codes [core] () 2022-02-17 23:09:22 -08:00
Ville Skyttä 872bc456a9
Clean up no longer needed Python 3.8 support code ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-30 15:07:07 -06:00
Marc Mueller 240c9979c7
Move `disallow-any-generics` to mypy.ini () 2022-01-11 13:33:25 -08:00
Ruslan Sayfutdinov 55f4962c06
Fix pylint plugin which checks relative imports () 2021-12-23 11:14:47 -08:00
J. Nick Koston 6576225c48
Log unhandled loop exception traces when asyncio debug is on () 2021-10-18 20:07:51 -07:00
Marc Mueller 238b488642
Use assignment expressions 03 () 2021-10-17 20:08:11 +02:00
J. Nick Koston 9831ff0487
Avoid deadlock on shutdown when a task is shielded from cancelation () 2021-09-21 14:35:14 -07:00
J. Nick Koston 1ba5c1c9fb
Fix deadlock at shutdown with python 3.9 () 2021-07-07 09:23:24 +02:00
J. Nick Koston 04a0ca14e0
Ensure shutdown does not deadlock () 2021-04-18 08:55:51 -10:00
Marc Mueller e55702d635
Update typing 01 () 2021-03-17 17:34:55 +01:00
Ville Skyttä 94dbcc9d2b
Generics and other type hint improvements () 2021-01-18 22:23:25 +01:00
Ville Skyttä 43474762b2
Drop remaining Python < 3.8 support ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-01-04 11:47:29 +01:00
Paulus Schoutsen 819dd27925
Automatically clean up executor as part of closing loop () 2020-11-16 15:43:48 +01:00
Ville Skyttä 1bf2c4d976
Upgrade pylint to 2.6.0 () 2020-08-29 07:59:24 +02:00
Franck Nijhof 1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
J. Nick Koston a6cec21c43
Make executor max_workers consistent between python versions ()
The default on python 3.8 is for max_workers is significantly
lower than the default on python 3.7 which means we can get starved
for workers.

To determine a reasonable maximum, the maximum was increased to large
number on 5 production instances.

The number of worker threads created during startup that were
needed to avoid waiting for a thread:

  HOU 1 - 71
  HOU 2 - 48
  OGG 1 - 60
  OGG 2 - 68
  OGG 3 - 64

This lead to a selection of 64 as it was reliable in all cases
and did not have a significant memory impact
2020-08-13 10:12:18 +02:00
Ville Skyttä aa1c5fc43d
Various type hint improvements () 2020-07-22 08:06:37 -07:00
Paulus Schoutsen c47fd90eb3 Fix loop exception handler 2020-07-07 00:00:46 +00:00
Paulus Schoutsen f49ce5d1b4
Protect loop set default executor ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-07-06 15:58:53 -07:00