@@ -217,7 +217,7 @@ def initialize(self) -> None:
217217
218218 try :
219219 self ._api .list_projects ()
220- except Exception as e :
220+ except Exception as e : # noqa: BLE001
221221 raise RuntimeError (
222222 "Failed to authenticate with the provided server and token" ,
223223 ) from e
@@ -371,36 +371,42 @@ class TaskDecorator(t.Protocol):
371371 def __call__ (
372372 self ,
373373 func : t .Callable [P , t .Awaitable [R ]],
374- ) -> Task [P , R ]: ...
374+ ) -> Task [P , R ]:
375+ ...
375376
376377 @t .overload
377378 def __call__ (
378379 self ,
379380 func : t .Callable [P , R ],
380- ) -> Task [P , R ]: ...
381+ ) -> Task [P , R ]:
382+ ...
381383
382384 def __call__ (
383385 self ,
384386 func : t .Callable [P , t .Awaitable [R ]] | t .Callable [P , R ],
385- ) -> Task [P , R ]: ...
387+ ) -> Task [P , R ]:
388+ ...
386389
387390 class ScoredTaskDecorator (t .Protocol , t .Generic [R ]):
388391 @t .overload
389392 def __call__ (
390393 self ,
391394 func : t .Callable [P , t .Awaitable [R ]],
392- ) -> Task [P , R ]: ...
395+ ) -> Task [P , R ]:
396+ ...
393397
394398 @t .overload
395399 def __call__ (
396400 self ,
397401 func : t .Callable [P , R ],
398- ) -> Task [P , R ]: ...
402+ ) -> Task [P , R ]:
403+ ...
399404
400405 def __call__ (
401406 self ,
402407 func : t .Callable [P , t .Awaitable [R ]] | t .Callable [P , R ],
403- ) -> Task [P , R ]: ...
408+ ) -> Task [P , R ]:
409+ ...
404410
405411 @t .overload
406412 def task (
@@ -414,7 +420,8 @@ def task(
414420 log_output : bool = True ,
415421 tags : t .Sequence [str ] | None = None ,
416422 ** attributes : t .Any ,
417- ) -> TaskDecorator : ...
423+ ) -> TaskDecorator :
424+ ...
418425
419426 @t .overload
420427 def task (
@@ -428,7 +435,8 @@ def task(
428435 log_output : bool = True ,
429436 tags : t .Sequence [str ] | None = None ,
430437 ** attributes : t .Any ,
431- ) -> ScoredTaskDecorator [R ]: ...
438+ ) -> ScoredTaskDecorator [R ]:
439+ ...
432440
433441 def task (
434442 self ,
@@ -824,13 +832,14 @@ def log_metric(
824832 - direct: do not modify the value at all (default)
825833 - min: always report the lowest ovbserved value for this metric
826834 - max: always report the highest observed value for this metric
835+ - avg: report the average of all values for this metric
827836 - sum: report a rolling sum of all values for this metric
828837 - count: report the number of times this metric has been logged
829838 to: The target object to log the metric to. Can be "task-or-run" or "run".
830839 Defaults to "task-or-run". If "task-or-run", the metric will be logged
831840 to the current task or run, whichever is the nearest ancestor.
832841 """
833- ... # noqa: PIE790
842+ ...
834843
835844 @handle_internal_errors ()
836845 def log_metric (
0 commit comments