Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyignite/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async def _from_python_async(self, stream, save_to_buf=False):
write_footer(self, stream, header, header_class, schema_items, offsets, initial_pos, save_to_buf)

def write_header(obj, stream):
header_class = BinaryObject.build_header()
header_class = BinaryObject.get_header_class()
header = header_class()
header.type_code = int.from_bytes(
BinaryObject.type_code,
Expand Down
6 changes: 3 additions & 3 deletions pyignite/datatypes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ async def from_python_async(cls, stream, value, **kwargs):
cls.from_python(stream, value, **kwargs)

@classmethod
def to_python(cls, ctype_object, *args, **kwargs):
def to_python(cls, ctypes_object, *args, **kwargs):
raise NotImplementedError

@classmethod
async def to_python_async(cls, ctype_object, *args, **kwargs):
return cls.to_python(ctype_object, *args, **kwargs)
async def to_python_async(cls, ctypes_object, *args, **kwargs):
return cls.to_python(ctypes_object, *args, **kwargs)
14 changes: 7 additions & 7 deletions pyignite/datatypes/cache_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ async def parse_async(cls, stream):
return cls.parse(stream)

@classmethod
def to_python(cls, ctype_object, *args, **kwargs):
return cls.prop_data_class.to_python(ctype_object.data, *args, **kwargs)
def to_python(cls, ctypes_object, *args, **kwargs):
return cls.prop_data_class.to_python(ctypes_object.data, *args, **kwargs)

@classmethod
async def to_python_async(cls, ctype_object, *args, **kwargs):
return cls.to_python(ctype_object, *args, **kwargs)
async def to_python_async(cls, ctypes_object, *args, **kwargs):
return cls.to_python(ctypes_object, *args, **kwargs)

@classmethod
def from_python(cls, stream, value):
Expand Down Expand Up @@ -295,6 +295,6 @@ def from_python(cls, stream, value):
)

@classmethod
def to_python(cls, ctype_object, *args, **kwargs):
prop_data_class = prop_map(ctype_object.prop_code)
return prop_data_class.to_python(ctype_object.data, *args, **kwargs)
def to_python(cls, ctypes_object, *args, **kwargs):
prop_data_class = prop_map(ctypes_object.prop_code)
return prop_data_class.to_python(ctypes_object.data, *args, **kwargs)
Loading