Skip to content

Commit 0a10655

Browse files
committed
response: Fix type extraction methods
1 parent 913fa5c commit 0a10655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/skytable_py/response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ def float(self) -> Union[None, float]:
116116

117117
def string(self) -> Union[None, str]:
118118
if isinstance(self.repr, str):
119-
return self.repr.inner
119+
return self.repr
120120
return None
121121

122122
def binary(self) -> Union[None, bytes]:
123123
if isinstance(self.repr, bytes):
124-
return self.repr.inner
124+
return self.repr
125125
return None
126126

127127
def list(self) -> Union[None, list]:

0 commit comments

Comments
 (0)