Skip to content

Commit c801c9f

Browse files
authored
fix(lint): alias datetime import for ruff 0.17 ICN001 (#3896)
1 parent fd98154 commit c801c9f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • inferencex-e2e/infx/bench/agentic

‎inferencex-e2e/infx/bench/agentic/run.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
import argparse
6-
import datetime
6+
import datetime as dt
77
import os
88
import shlex
99
import sys
@@ -168,7 +168,7 @@ def _open_power_window(plan: Plan, python: str, env: Mapping[str, str]) -> int:
168168
return 0
169169
# AIPerf exports naive local datetimes; the adapter needs the offset to convert the
170170
# profiling window to Unix time.
171-
now = datetime.datetime.now(datetime.timezone.utc).astimezone()
171+
now = dt.datetime.now(dt.timezone.utc).astimezone()
172172
(plan.result_dir / "agentic_power_timezone_offset.txt").write_text(f"{now:%z}\n")
173173
rc = _power_adapter(plan, python, env, *_window(plan, "running"))
174174
if rc:

0 commit comments

Comments
 (0)