Skip to content

Commit be848c1

Browse files
authored
Small change (#1899)
1 parent 568a749 commit be848c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

integrations/google_genai/pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ ignore = [
125125
"ARG001",
126126
"ARG002",
127127
"ARG005",
128+
# Allow function call argument defaults e.g. `Secret.from_env_var`
129+
"B008",
128130
]
129131
unfixable = [
130132
# Don't touch unused imports
@@ -170,4 +172,4 @@ markers = [
170172
"generators: generators tests",
171173
]
172174
log_cli = true
173-
asyncio_mode = "auto"
175+
asyncio_mode = "auto"

integrations/google_genai/src/haystack_integrations/components/generators/google_genai/chat/chat_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def weather_function(city: str):
230230
def __init__(
231231
self,
232232
*,
233-
api_key: Secret = Secret.from_env_var("GOOGLE_API_KEY"), # noqa: B008
233+
api_key: Secret = Secret.from_env_var("GOOGLE_API_KEY"),
234234
model: str = "gemini-2.0-flash",
235235
generation_kwargs: Optional[Dict[str, Any]] = None,
236236
safety_settings: Optional[List[Dict[str, Any]]] = None,

0 commit comments

Comments
 (0)