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

Commit 6d9ec70

Browse files
authored
Revert a change to remove imports of the types module from __init__.py (#78)
1 parent 45aabf7 commit 6d9ec70

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

dialogflow_v2/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17+
from dialogflow_v2 import types
1718
from dialogflow_v2.gapic import agents_client
1819
from dialogflow_v2.gapic import contexts_client
1920
from dialogflow_v2.gapic import entity_types_client

dialogflow_v2beta1/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17+
from dialogflow_v2beta1 import types
1718
from dialogflow_v2beta1.gapic import agents_client
1819
from dialogflow_v2beta1.gapic import contexts_client
1920
from dialogflow_v2beta1.gapic import documents_client

synth.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@
4242

4343
code_paths = ['tests/unit/gapic/**/*.py',
4444
f'dialogflow_{version}/**/*.py']
45-
#,
46-
#f'dialogflow_{version}/__init__.py'
47-
#f'dialogflow_{version}/types.py']
4845

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

75-
# __init__.py has an import that isn't used and causes errors
76-
s.replace(
77-
['dialogflow_v2/__init__.py', 'dialogflow_v2beta1/__init__.py'],
78-
'from dialogflow_.*? import types\n',
79-
'')
80-
8172
# Docstring has an extra '\' at the end of it
8273
s.replace(
8374
'dialogflow_v2/gapic/agents_client.py',

0 commit comments

Comments
 (0)