ci : bump ty to 0.0.78 (#28548)

* bump ty to 0.0.78

* type fixes

* more type fixes

* add --exit-zero-on-warning

* remove Callable again
This commit is contained in:
Sigbjørn Skjæret
2026-09-07 21:10:06 +02:00
committed by GitHub
parent f114f91f9e
commit 67672dc5b7
7 changed files with 11 additions and 10 deletions
+1 -2
View File
@@ -20,7 +20,6 @@ from PySide6.QtCore import Qt, QRect, QSize
from jinja2 import TemplateSyntaxError
from jinja2.sandbox import ImmutableSandboxedEnvironment
from datetime import datetime
from typing import Callable
def format_template_content(template_content):
@@ -396,7 +395,7 @@ class JinjaTester(QMainWindow):
ensure_ascii=ensure_ascii,
)
)
env.globals["strftime_now"]: Callable[[str], str] = lambda format: datetime.now().strftime(format)
env.globals["strftime_now"] = lambda format: datetime.now().strftime(format) # ty: ignore[invalid-assignment, invalid-argument-type]
env.globals["raise_exception"] = raise_exception # ty: ignore[invalid-assignment]
try:
template = env.from_string(template_str)
+3 -1
View File
@@ -7,7 +7,7 @@ import argparse
import statistics
import logging
import bisect
from typing import Any, Dict, List, Optional
from typing import Any, Dict, List, Optional, Iterable
from collections import defaultdict
@@ -473,6 +473,8 @@ def print_bubbles_timeline(op):
all_bubbles = []
for t in active_threads:
stats = thread_stats[t]
assert isinstance(stats['dma_bubbles'], Iterable)
assert isinstance(stats['compute_bubbles'], Iterable)
for start, end, dur in stats['compute_bubbles']:
pct = (dur / batch_duration) * 100.0
all_bubbles.append((dur, f"Thread {t} Compute: bubble of {dur} cycles ({pct:.1f}%) at {start - op_start} to {end - op_start}"))
+2 -2
View File
@@ -52,8 +52,8 @@ import typer
sys.path.insert(0, Path(__file__).parent.parent.as_posix())
if True:
from tools.server.tests.utils import ServerProcess
from tools.server.tests.unit.test_tool_call import do_test_calc_result, do_test_hello_world, do_test_weather
from tools.server.tests.utils import ServerProcess # ty: ignore[unresolved-import]
from tools.server.tests.unit.test_tool_call import do_test_calc_result, do_test_hello_world, do_test_weather # ty: ignore[unresolved-import]
@contextmanager