Fix documentation and layout (PEP8)

This commit is contained in:
allegroai
2020-05-24 08:16:12 +03:00
parent 70cdb13252
commit 96f899d028
43 changed files with 580 additions and 322 deletions

View File

@@ -23,12 +23,12 @@ class ApiServiceProxy(object):
if not ApiServiceProxy._max_available_version:
from ..backend_api import services
ApiServiceProxy._max_available_version = max([
Version(name[1:].replace("_", "."))
for name in [
module_name
for _, module_name, _ in pkgutil.iter_modules(services.__path__)
if re.match(r"^v[0-9]+_[0-9]+$", module_name)
]])
Version(name[1:].replace("_", "."))
for name in [
module_name
for _, module_name, _ in pkgutil.iter_modules(services.__path__)
if re.match(r"^v[0-9]+_[0-9]+$", module_name)
]])
version = str(min(Version(Session.api_version), ApiServiceProxy._max_available_version))
self.__dict__["__wrapped_version__"] = Session.api_version