4
4
import copy
5
5
import logging
6
6
7
- import pyodata .config as pyodata
7
+ import pyodata .config as conf
8
8
import pyodata .policies as policies
9
9
import pyodata .exceptions as exceptions
10
10
import pyodata .model .elements as elements
@@ -18,7 +18,7 @@ def modlog():
18
18
return logging .getLogger ("callbacks" )
19
19
20
20
21
- def build_struct_type_property (config : pyodata .Config , entity_type_property_node ):
21
+ def build_struct_type_property (config : conf .Config , entity_type_property_node ):
22
22
return elements .StructTypeProperty (
23
23
entity_type_property_node .get ('Name' ),
24
24
elements .Types .parse_type_name (entity_type_property_node .get ('Type' )),
@@ -42,7 +42,7 @@ def build_struct_type_property(config: pyodata.Config, entity_type_property_node
42
42
43
43
44
44
# pylint: disable=protected-access
45
- def build_struct_type (config : pyodata .Config , type_node , typ , schema = None ):
45
+ def build_struct_type (config : conf .Config , type_node , typ , schema = None ):
46
46
name = type_node .get ('Name' )
47
47
base_type = type_node .get ('BaseType' )
48
48
@@ -80,7 +80,7 @@ def build_struct_type(config: pyodata.Config, type_node, typ, schema=None):
80
80
return stype
81
81
82
82
83
- def build_complex_type (config : pyodata .Config , type_node , schema = None ):
83
+ def build_complex_type (config : conf .Config , type_node , schema = None ):
84
84
try :
85
85
return elements .build_element (elements .StructType , config , type_node = type_node , typ = elements .ComplexType ,
86
86
schema = schema )
@@ -90,7 +90,7 @@ def build_complex_type(config: pyodata.Config, type_node, schema=None):
90
90
91
91
92
92
# pylint: disable=protected-access
93
- def build_entity_type (config : pyodata .Config , type_node , schema = None ):
93
+ def build_entity_type (config : conf .Config , type_node , schema = None ):
94
94
try :
95
95
etype = elements .build_element (elements .StructType , config , type_node = type_node , typ = elements .EntityType ,
96
96
schema = schema )
@@ -113,7 +113,7 @@ def build_entity_type(config: pyodata.Config, type_node, schema=None):
113
113
114
114
115
115
# pylint: disable=protected-access, too-many-locals
116
- def build_enum_type (config : pyodata .Config , type_node , namespace ):
116
+ def build_enum_type (config : conf .Config , type_node , namespace ):
117
117
try :
118
118
ename = type_node .get ('Name' )
119
119
is_flags = type_node .get ('IsFlags' )
@@ -263,7 +263,7 @@ def build_value_helper_parameter(config, value_help_parameter_node):
263
263
264
264
265
265
# pylint: disable=too-many-locals
266
- def build_function_import (config : pyodata .Config , function_import_node ):
266
+ def build_function_import (config : conf .Config , function_import_node ):
267
267
name = function_import_node .get ('Name' )
268
268
entity_set = function_import_node .get ('EntitySet' )
269
269
http_method = elements .metadata_attribute_get (function_import_node , 'HttpMethod' )
0 commit comments