GeezerVison is showing github.com — mypy checks failing for google/cloud/dialogflow_v2beta1 (also google/cloud/dialogflow_v2) recent librarian generation · Issue #16165 · googleapis/google-cloud-python
mypy checks failing for google/cloud/dialogflow_v2beta1 (also google/cloud/dialogflow_v2) recent librarian generation #16165
Labels
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Description
There were a couple of failed libraries to generate this this weeks batch: #16161
@parthea tried to regenerate these individually in:
Both have failed mypy lint checks which are required. Assigning to on-duty
Activity
parthea commented on Mar 25, 2026
Correction, only #16162 is failing due to duplicate variable names. See file packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/answer_records/async_client.py in https://github.com/googleapis/google-cloud-python/pull/16162/changes
nox > mypy -p google --check-untyped-defs
mypy.ini: [mypy-google.iam.*]: Per-module sections should only specify per-module flags (explicit_package_bases, incremental)
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2beta1/services/participants/client.py:452: error: Name "tool_path" already defined on line 430 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2beta1/services/participants/client.py:467: error: Name "parse_tool_path" already defined on line 443 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2beta1/services/generators/client.py:306: error: Name "tool_path" already defined on line 284 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2beta1/services/generators/client.py:321: error: Name "parse_tool_path" already defined on line 297 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2beta1/services/generator_evaluations/client.py:332: error: Name "tool_path" already defined on line 310 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2beta1/services/generator_evaluations/client.py:347: error: Name "parse_tool_path" already defined on line 323 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2beta1/services/conversations/client.py:535: error: Name "tool_path" already defined on line 513 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2beta1/services/conversations/client.py:550: error: Name "parse_tool_path" already defined on line 526 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2beta1/services/answer_records/client.py:360: error: Name "tool_path" already defined on line 338 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2beta1/services/answer_records/client.py:375: error: Name "parse_tool_path" already defined on line 351 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2/services/participants/client.py:430: error: Name "tool_path" already defined on line 408 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2/services/participants/client.py:445: error: Name "parse_tool_path" already defined on line 421 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2/services/generators/client.py:306: error: Name "tool_path" already defined on line 284 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2/services/generators/client.py:321: error: Name "parse_tool_path" already defined on line 297 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2/services/generator_evaluations/client.py:328: error: Name "tool_path" already defined on line 306 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2/services/generator_evaluations/client.py:343: error: Name "parse_tool_path" already defined on line 319 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2/services/conversations/client.py:535: error: Name "tool_path" already defined on line 513 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2/services/conversations/client.py:550: error: Name "parse_tool_path" already defined on line 526 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2/services/answer_records/client.py:338: error: Name "tool_path" already defined on line 316 [no-redef]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/dialogflow_v2/services/answer_records/client.py:353: error: Name "parse_tool_path" already defined on line 329 [no-redef]

changed the title
[-]mypy checks failing for recent librarian generations[/-] [+]mypy checks failing for google/cloud/dialogflow_v2beta1 recent librarian generation[/+] on Mar 25, 2026added
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release. on Mar 25, 2026changed the title
[-]mypy checks failing for google/cloud/dialogflow_v2beta1 recent librarian generation[/-] [+]mypy checks failing for google/cloud/dialogflow_v2beta1 (also google/cloud/dialogflow_v2) recent librarian generation[/+] on Mar 27, 2026jskeet commented on Mar 31, 2026
When fixing this, it's worth being aware that at the moment, the GAPIC generator is non-deterministic under both librarian and legacylibrarian - regenerating the library, it changes every time. I'll add this to the doc too.
parthea commented on May 1, 2026
Closing this bug as duplicate of googleapis/librarian#5333. A new flag was added to gapic-generator to resolve helper method collisions via PR #16769. We're just waiting on this feature to be released. googleapis/librarian#5333 tracks restoring generation for google-cloud-dialogflow
Metadata
Metadata
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Development
No branches or pull requestsIssue actions