chore: address coderabbit cleanup notes
This commit is contained in:
@@ -49,6 +49,8 @@ class WorkflowAdminApi:
|
||||
)
|
||||
return {"statuses": statuses, "total": len(statuses)}
|
||||
|
||||
# Preserve provider order for events; event providers are expected to return
|
||||
# chronological order and callers may rely on that ordering for diagnostics.
|
||||
async def list_events(self) -> dict[str, Any]:
|
||||
events = [_payload(event) for event in self.events.list_events()]
|
||||
return {"events": events, "total": len(events)}
|
||||
|
||||
@@ -19,7 +19,9 @@ class WorkflowSourceRegistryProvider(Protocol):
|
||||
class WorkflowSourceRegistryMutationProvider(Protocol):
|
||||
"""Write capabilities for source registry mutation operations."""
|
||||
|
||||
def add_registry_entry(self, entry: Mapping[str, Any]) -> Mapping[str, Any] | object: ...
|
||||
def add_registry_entry(
|
||||
self, entry: Mapping[str, Any]
|
||||
) -> Mapping[str, Any] | object: ...
|
||||
def update_registry_entry(
|
||||
self, source_id: str, patch: Mapping[str, Any]
|
||||
) -> Mapping[str, Any] | object: ...
|
||||
|
||||
Reference in New Issue
Block a user