Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(toolbox-cli): fix import sort in telemetry.py (#63920)

Andrew Maguiref1701152bfc7
diff --git a/tools/infra-scripts/clitools/toolbox/telemetry.py b/tools/infra-scripts/clitools/toolbox/telemetry.py
index 1a23942348c5..ae503f1a2bee 100644
--- a/tools/infra-scripts/clitools/toolbox/telemetry.py
+++ b/tools/infra-scripts/clitools/toolbox/telemetry.py
@@ -81,7 +81,9 @@ def capture_invocation(distinct_id: str, properties: dict) -> None:
try:
# Imported lazily so a missing SDK degrades to a no-op instead of breaking
# the import of this module. Install with `pip install -r requirements.txt`.
- from posthog import Posthog # type: ignore[import-not-found] # noqa: PLC0415 — optional dep, kept off the import path
+ from posthog import (
+ Posthog, # type: ignore[import-not-found] # noqa: PLC0415 — optional dep, kept off the import path
+ )
resolved_distinct_id = distinct_id or "unknown"
client = Posthog(project_api_key=api_key, host=host)