44import copy
55import logging
66
7- import pyodata .config as pyodata
7+ import pyodata .config as conf
88import pyodata .policies as policies
99import pyodata .exceptions as exceptions
1010import pyodata .model .elements as elements
@@ -18,7 +18,7 @@ def modlog():
1818 return logging .getLogger ("callbacks" )
1919
2020
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 ):
2222 return elements .StructTypeProperty (
2323 entity_type_property_node .get ('Name' ),
2424 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
4242
4343
4444# 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 ):
4646 name = type_node .get ('Name' )
4747 base_type = type_node .get ('BaseType' )
4848
@@ -80,7 +80,7 @@ def build_struct_type(config: pyodata.Config, type_node, typ, schema=None):
8080 return stype
8181
8282
83- def build_complex_type (config : pyodata .Config , type_node , schema = None ):
83+ def build_complex_type (config : conf .Config , type_node , schema = None ):
8484 try :
8585 return elements .build_element (elements .StructType , config , type_node = type_node , typ = elements .ComplexType ,
8686 schema = schema )
@@ -90,7 +90,7 @@ def build_complex_type(config: pyodata.Config, type_node, schema=None):
9090
9191
9292# 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 ):
9494 try :
9595 etype = elements .build_element (elements .StructType , config , type_node = type_node , typ = elements .EntityType ,
9696 schema = schema )
@@ -113,7 +113,7 @@ def build_entity_type(config: pyodata.Config, type_node, schema=None):
113113
114114
115115# 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 ):
117117 try :
118118 ename = type_node .get ('Name' )
119119 is_flags = type_node .get ('IsFlags' )
@@ -263,7 +263,7 @@ def build_value_helper_parameter(config, value_help_parameter_node):
263263
264264
265265# 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 ):
267267 name = function_import_node .get ('Name' )
268268 entity_set = function_import_node .get ('EntitySet' )
269269 http_method = elements .metadata_attribute_get (function_import_node , 'HttpMethod' )
0 commit comments