Various type hint improvements (#37952)
This commit is contained in:
1 parent
3e2555e2c1
commit
aa1c5fc43d
9 files changed
+30
-27
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user