From cd30e51dc7289c4a393f3e007049b40c8c754bb7 Mon Sep 17 00:00:00 2001 From: Pathways-on-Cloud Team Date: Tue, 10 Mar 2026 16:37:01 -0700 Subject: [PATCH] Remove unnecessary pylint disables. The pylint disables for `unused-argument` and `unused-variables` are now removed where appropriate. PiperOrigin-RevId: 881678207 --- pathwaysutils/profiling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pathwaysutils/profiling.py b/pathwaysutils/profiling.py index d0c5e10..f918696 100644 --- a/pathwaysutils/profiling.py +++ b/pathwaysutils/profiling.py @@ -93,7 +93,7 @@ def _start_pathways_trace_from_profile_request( try: _, result_future = _profile_state.executable.call() result_future.result() - except Exception: # pylint: disable=broad-except + except Exception: _logger.exception("Failed to start trace") _profile_state.reset() raise @@ -191,7 +191,7 @@ class ProfilingConfig: repository_path: str @app.post("/profiling") - async def profiling(pc: ProfilingConfig) -> dict[str, str]: # pylint: disable=unused-variable + async def profiling(pc: ProfilingConfig) -> dict[str, str]: _logger.debug("Capturing profiling data for %s ms", pc.duration_ms) _logger.debug("Writing profiling data to %s", pc.repository_path) await asyncio.to_thread(jax.profiler.start_trace, pc.repository_path) @@ -275,7 +275,7 @@ def start_trace_patch( log_dir, create_perfetto_link: bool = False, create_perfetto_trace: bool = False, - profiler_options: jax.profiler.ProfileOptions | None = None, # pylint: disable=unused-argument + profiler_options: jax.profiler.ProfileOptions | None = None, ) -> None: _logger.debug("jax.profile.start_trace patched with pathways' start_trace") start_trace(