Skip to content

Commit 9039845

Browse files
anmarquesmarkurtz
authored andcommitted
Quality fixes
1 parent e37166f commit 9039845

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

src/guidellm/core/result.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def __iter__(self):
221221
"""
222222
return iter(self.results)
223223

224-
@computed_field
224+
@computed_field # type: ignore[misc]
225225
@property
226226
def request_count(self) -> int:
227227
"""
@@ -232,7 +232,7 @@ def request_count(self) -> int:
232232
"""
233233
return len(self.results)
234234

235-
@computed_field
235+
@computed_field # type: ignore[misc]
236236
@property
237237
def error_count(self) -> int:
238238
"""
@@ -243,7 +243,7 @@ def error_count(self) -> int:
243243
"""
244244
return len(self.errors)
245245

246-
@computed_field
246+
@computed_field # type: ignore[misc]
247247
@property
248248
def total_count(self) -> int:
249249
"""
@@ -254,7 +254,7 @@ def total_count(self) -> int:
254254
"""
255255
return self.request_count + self.error_count
256256

257-
@computed_field
257+
@computed_field # type: ignore[misc]
258258
@property
259259
def start_time(self) -> Optional[float]:
260260
"""
@@ -268,7 +268,7 @@ def start_time(self) -> Optional[float]:
268268

269269
return self.results[0].start_time
270270

271-
@computed_field
271+
@computed_field # type: ignore[misc]
272272
@property
273273
def end_time(self) -> Optional[float]:
274274
"""
@@ -282,7 +282,7 @@ def end_time(self) -> Optional[float]:
282282

283283
return self.results[-1].end_time
284284

285-
@computed_field
285+
@computed_field # type: ignore[misc]
286286
@property
287287
def duration(self) -> float:
288288
"""
@@ -296,7 +296,7 @@ def duration(self) -> float:
296296

297297
return self.end_time - self.start_time
298298

299-
@computed_field
299+
@computed_field # type: ignore[misc]
300300
@property
301301
def completed_request_rate(self) -> float:
302302
"""
@@ -310,7 +310,7 @@ def completed_request_rate(self) -> float:
310310

311311
return len(self.results) / self.duration
312312

313-
@computed_field
313+
@computed_field # type: ignore[misc]
314314
@property
315315
def request_latency(self) -> float:
316316
"""
@@ -340,7 +340,7 @@ def request_latency_distribution(self) -> Distribution:
340340
]
341341
)
342342

343-
@computed_field
343+
@computed_field # type: ignore[misc]
344344
@property
345345
def request_latency_percentiles(self) -> List[float]:
346346
"""
@@ -352,7 +352,7 @@ def request_latency_percentiles(self) -> List[float]:
352352
return self.request_latency_distribution.percentiles([1, 5, 10, 50, 90, 95, 99])
353353

354354

355-
@computed_field
355+
@computed_field # type: ignore[misc]
356356
@property
357357
def time_to_first_token(self) -> float:
358358
"""
@@ -382,7 +382,7 @@ def ttft_distribution(self) -> Distribution:
382382
]
383383
)
384384

385-
@computed_field
385+
@computed_field # type: ignore[misc]
386386
@property
387387
def time_to_first_token_percentiles(self) -> List[float]:
388388
"""
@@ -395,7 +395,7 @@ def time_to_first_token_percentiles(self) -> List[float]:
395395
"""
396396
return self.ttft_distribution.percentiles([1, 5, 10, 50, 90, 95, 99])
397397

398-
@computed_field
398+
@computed_field # type: ignore[misc]
399399
@property
400400
def inter_token_latency(self) -> float:
401401
"""
@@ -423,7 +423,7 @@ def itl_distribution(self) -> Distribution:
423423
]
424424
)
425425

426-
@computed_field
426+
@computed_field # type: ignore[misc]
427427
@property
428428
def inter_token_latency_percentiles(self) -> List[float]:
429429
"""
@@ -434,7 +434,7 @@ def inter_token_latency_percentiles(self) -> List[float]:
434434
"""
435435
return self.itl_distribution.percentiles([1, 5, 10, 50, 90, 95, 99])
436436

437-
@computed_field
437+
@computed_field # type: ignore[misc]
438438
@property
439439
def output_token_throughput(self) -> float:
440440
"""
@@ -450,7 +450,7 @@ def output_token_throughput(self) -> float:
450450

451451
return total_tokens / self.duration
452452

453-
@computed_field
453+
@computed_field # type: ignore[misc]
454454
@property
455455
def prompt_token(self) -> float:
456456
"""
@@ -471,7 +471,7 @@ def prompt_token_distribution(self) -> Distribution:
471471
"""
472472
return Distribution(data=[result.prompt_token_count for result in self.results])
473473

474-
@computed_field
474+
@computed_field # type: ignore[misc]
475475
@property
476476
def prompt_token_percentiles(self) -> List[float]:
477477
"""
@@ -482,7 +482,7 @@ def prompt_token_percentiles(self) -> List[float]:
482482
"""
483483
return self.prompt_token_distribution.percentiles([1, 5, 50, 95, 99])
484484

485-
@computed_field
485+
@computed_field # type: ignore[misc]
486486
@property
487487
def output_token(self) -> float:
488488
"""
@@ -503,7 +503,7 @@ def output_token_distribution(self) -> Distribution:
503503
"""
504504
return Distribution(data=[result.output_token_count for result in self.results])
505505

506-
@computed_field
506+
@computed_field # type: ignore[misc]
507507
@property
508508
def output_token_percentiles(self) -> List[float]:
509509
"""
@@ -514,7 +514,7 @@ def output_token_percentiles(self) -> List[float]:
514514
"""
515515
return self.output_token_distribution.percentiles([1, 5, 50, 95, 99])
516516

517-
@computed_field
517+
@computed_field # type: ignore[misc]
518518
@property
519519
def overloaded(self) -> bool:
520520
if (

0 commit comments

Comments
 (0)