You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by is...@apache.org on 2021/02/02 09:20:49 UTC

[ignite-python-thin-client] 02/02: IGNITE-13863: Minor fix

This is an automated email from the ASF dual-hosted git repository.

isapego pushed a commit to branch ignite-13863
in repository https://gitbox.apache.org/repos/asf/ignite-python-thin-client.git

commit bf76b27d30c13b6e286c6f38e84973bddb6807b1
Author: Igor Sapego <ig...@gmail.com>
AuthorDate: Thu Jan 28 01:19:27 2021 +0300

    IGNITE-13863: Minor fix
---
 pyignite/datatypes/complex.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pyignite/datatypes/complex.py b/pyignite/datatypes/complex.py
index 2d4de53..7fa6bc2 100644
--- a/pyignite/datatypes/complex.py
+++ b/pyignite/datatypes/complex.py
@@ -454,10 +454,10 @@ class MapObject(Map):
 
     @classmethod
     def to_python(cls, ctype_object, *args, **kwargs):
-        type = getattr(ctype_object, "type", None)
-        if type is None:
+        typ = getattr(ctype_object, "type", None)
+        if typ is None:
             return None
-        return ctype_object.type, super().to_python(
+        return typ, super().to_python(
             ctype_object, *args, **kwargs
         )