Various type hint improvements (#37952)

This commit is contained in:
Ville Skyttä authored and GitHub committed 2020-07-22 08:06:37 -07:00
1 parent 3e2555e2c1
commit aa1c5fc43d
9 files changed
+30 -27

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ from homeassistant.util.async_ import protect_loop
def enable() -> None:
"""Enable the detection of I/O in the event loop."""
# Prevent urllib3 and requests doing I/O in event loop
HTTPConnection.putrequest = protect_loop(HTTPConnection.putrequest)
HTTPConnection.putrequest = protect_loop(HTTPConnection.putrequest) # type: ignore
# Currently disabled. pytz doing I/O when getting timezone.
# Prevent files being opened inside the event loop