Core code styling improvements (#85963)

This commit is contained in:
Franck Nijhof 2023-01-15 23:00:51 +01:00 committed by GitHub
parent 8e5236528f
commit 64c2340fab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 106 additions and 53 deletions

View file

@ -175,7 +175,10 @@ class FlowManager(abc.ABC):
def async_has_matching_flow(
self, handler: str, context: dict[str, Any], data: Any
) -> bool:
"""Check if an existing matching flow is in progress with the same handler, context, and data."""
"""Check if an existing matching flow is in progress.
A flow with the same handler, context, and data.
"""
return any(
flow
for flow in self._async_progress_by_handler(handler)