Skip to content

WIP: dialogflow changes#16643

Draft
ohmayr wants to merge 1 commit intoexperiment-deterministic-resource-namesfrom
dialogflow-namespace-collisions
Draft

WIP: dialogflow changes#16643
ohmayr wants to merge 1 commit intoexperiment-deterministic-resource-namesfrom
dialogflow-namespace-collisions

Conversation

@ohmayr
Copy link
Copy Markdown
Contributor

@ohmayr ohmayr commented Apr 14, 2026

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Dialogflow client libraries by adding new types and service methods, including support for CES apps, tools, and toolsets. It also includes documentation formatting improvements and updates to import statements. I have provided feedback regarding the import ordering, as several files deviate from PEP 8 standards by mixing third-party and local imports without proper separation.

Comment on lines 38 to +39
from google.cloud.dialogflow_v2 import gapic_version as package_version
from google.oauth2 import service_account # type: ignore
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This change, and similar changes in other files, disrupt the standard Python import order defined in PEP 8. PEP 8 recommends grouping imports into standard library, third-party, and local application sections, separated by blank lines. The previous code correctly separated the third-party google.oauth2 import from the local google.cloud.dialogflow_v2 import. The new ordering mixes them and removes the separating blank line, which can harm readability and maintainability. It's recommended to revert to the standard import grouping across the project.

For example, the order should be:

from google.oauth2 import service_account  # type: ignore

from google.cloud.dialogflow_v2 import gapic_version as package_version
Suggested change
from google.cloud.dialogflow_v2 import gapic_version as package_version
from google.oauth2 import service_account # type: ignore
from google.oauth2 import service_account # type: ignore
from google.cloud.dialogflow_v2 import gapic_version as package_version
References
  1. PEP 8 recommends grouping imports into standard library, third-party, and local application sections, separated by blank lines. (link)

Comment on lines 38 to +39
from google.cloud.dialogflow_v2beta1 import gapic_version as package_version
from google.oauth2 import service_account # type: ignore
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This change, and similar changes in other files, disrupt the standard Python import order defined in PEP 8. PEP 8 recommends grouping imports into standard library, third-party, and local application sections, separated by blank lines. The previous code correctly separated the third-party google.oauth2 import from the local google.cloud.dialogflow_v2beta1 import. The new ordering mixes them and removes the separating blank line, which can harm readability and maintainability. It's recommended to revert to the standard import grouping across the project.

For example, the order should be:

from google.oauth2 import service_account  # type: ignore

from google.cloud.dialogflow_v2beta1 import gapic_version as package_version
Suggested change
from google.cloud.dialogflow_v2beta1 import gapic_version as package_version
from google.oauth2 import service_account # type: ignore
from google.oauth2 import service_account # type: ignore
from google.cloud.dialogflow_v2beta1 import gapic_version as package_version
References
  1. PEP 8 recommends grouping imports into standard library, third-party, and local application sections, separated by blank lines. (link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant