Skip to content

Commit

Permalink
Revert a change to remove imports of the types module from __init__.py (
Browse files Browse the repository at this point in the history
  • Loading branch information
crwilcox authored Jul 19, 2018
1 parent ab5f0ea commit a920994
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/google-cloud-dialogflow/dialogflow_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from __future__ import absolute_import

from dialogflow_v2 import types
from dialogflow_v2.gapic import agents_client
from dialogflow_v2.gapic import contexts_client
from dialogflow_v2.gapic import entity_types_client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from __future__ import absolute_import

from dialogflow_v2beta1 import types
from dialogflow_v2beta1.gapic import agents_client
from dialogflow_v2beta1.gapic import contexts_client
from dialogflow_v2beta1.gapic import documents_client
Expand Down
9 changes: 0 additions & 9 deletions packages/google-cloud-dialogflow/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@

code_paths = ['tests/unit/gapic/**/*.py',
f'dialogflow_{version}/**/*.py']
#,
#f'dialogflow_{version}/__init__.py'
#f'dialogflow_{version}/types.py']

s.replace(
code_paths, 'import google.cloud.dialogflow', 'import dialogflow')
Expand Down Expand Up @@ -72,12 +69,6 @@
"# Copyright 2018 Google LLC",
"# -*- coding: utf-8 -*-\n\g<0>")

# __init__.py has an import that isn't used and causes errors
s.replace(
['dialogflow_v2/__init__.py', 'dialogflow_v2beta1/__init__.py'],
'from dialogflow_.*? import types\n',
'')

# Docstring has an extra '\' at the end of it
s.replace(
'dialogflow_v2/gapic/agents_client.py',
Expand Down

0 comments on commit a920994

Please sign in to comment.