Skip to content
Snippets Groups Projects
Commit fffe1445 authored by Christoph Schmidt's avatar Christoph Schmidt
Browse files

Added overloaded typecast method

parent ddc2d5cc
No related branches found
No related tags found
No related merge requests found
......@@ -20,3 +20,7 @@ class FieldFloat(Field):
def _yaml_repr(self):
return float(self.value)
def __float__(self):
# return str(self.as_dataframe())
return float(self.get())
\ No newline at end of file
......@@ -20,3 +20,7 @@ class FieldInt(Field):
def _yaml_repr(self):
return int(self.value)
def __int__(self):
# return str(self.as_dataframe())
return int(self.get())
\ No newline at end of file
......@@ -21,3 +21,7 @@ class FieldList(Field):
def _yaml_repr(self):
return str(self.value)
def __iter__(self):
# return str(self.as_dataframe())
return list(self.get())
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment