Skip to content

Commit bbc94e9

Browse files
committed
fix: resolve mypy no-any-return and pyink formatting errors
1 parent 2e562a0 commit bbc94e9

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

contributing/samples/gepa/experiment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
from tau_bench.types import EnvRunResult
4444
from tau_bench.types import RunConfig
4545
import tau_bench_agent as tau_bench_agent_lib
46-
4746
import utils
4847

4948

contributing/samples/gepa/run_experiment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from absl import flags
2626
import experiment
2727
from google.genai import types
28-
2928
import utils
3029

3130
_OUTPUT_DIR = flags.DEFINE_string(

src/google/adk/utils/model_name_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def is_gemini_2_or_above(model_string: Optional[str]) -> bool:
124124
except InvalidVersion:
125125
return False
126126

127-
return parsed_version.major >= 2
127+
return bool(parsed_version.major >= 2)
128128

129129

130130
def is_gemini_3_1_flash_live(model_string: Optional[str]) -> bool:
@@ -161,7 +161,7 @@ def is_gemini_3_or_above(model_string: Optional[str]) -> bool:
161161
if not model_name.startswith('gemini-'):
162162
return False
163163

164-
version_string = model_name[len('gemini-'):].split('-', 1)[0]
164+
version_string = model_name[len('gemini-') :].split('-', 1)[0]
165165
if not version_string:
166166
return False
167167

@@ -170,4 +170,4 @@ def is_gemini_3_or_above(model_string: Optional[str]) -> bool:
170170
except InvalidVersion:
171171
return False
172172

173-
return parsed_version.major >= 3
173+
return bool(parsed_version.major >= 3)

0 commit comments

Comments
 (0)