You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Python 3.7 importlib which resolves imports was updated. It allowed
to use "import x.y as c" in __x__.py, but as we support python 3.6 as
well we needed to optimize to work properly even with previous versions
of importlib. Thus, the reason for this commit.
All imports of files defined in the same folder as __module__.py are
now in the form of "from .x import a,b,c". Also, since now all relevant
classes for using pyodata e. g. elements, types are now directly
imported in the appropriate module. User should always use API exposed
directly from importing "pyodata.v2" or "pyodata.v4"
Moreover, to remove cyclic imports:
1) Adapter function for build_entity_set(Credit to Jakub Filak)
was added as well as class.
2) ODATAVersion was moved to separate file.
3) Redundant function schema_from_xml which required importing
pyodata.v2 was removed. Used MetadataBuilder(xml, Config(ODataV2))
instead.
0 commit comments