File tree Expand file tree Collapse file tree
packages/gapic-generator/gapic/ads-templates/%namespace/%name/%version Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ from {{package_path}} import gapic_version as package_version
1111__version__ = package_version.__version__
1212
1313
14- if sys.version_info < (3, 7 ):
15- raise ImportError('This module requires Python 3.7 or later.')
14+ if sys.version_info < (3, 8 ):
15+ raise ImportError('This module requires Python 3.8 or later.')
1616
1717
1818_lazy_type_to_package_map = {
@@ -37,14 +37,14 @@ _lazy_type_to_package_map = {
3737
3838
3939# Background on how this behaves: https://www.python.org/dev/peps/pep-0562/
40- def __getattr__(name): # Requires Python >= 3.7
40+ def __getattr__(name):
4141 if name == '__all__':
4242 all_names = globals()['__all__'] = sorted(_lazy_type_to_package_map)
4343 return all_names
4444 elif name in _lazy_type_to_package_map:
4545 module = importlib.import_module(f'{_lazy_type_to_package_map[name]}')
4646 klass = getattr(module, name)
47- {# new_klass = type(name, (klass,), {'__doc__': klass.__doc__}) #}
47+
4848 globals()[name] = klass
4949 return klass
5050 else:
You can’t perform that action at this time.
0 commit comments