Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

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 committed Jul 19, 2018
1 parent 45aabf7 commit 6d9ec70
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions dialogflow_v2/__init__.py
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
1 change: 1 addition & 0 deletions dialogflow_v2beta1/__init__.py
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 synth.py
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 6d9ec70

Please sign in to comment.