提交 e5b1cfca authored 作者: Frederic's avatar Frederic

Use the new filter interface

上级 20ae6a78
...@@ -19,7 +19,7 @@ def as_variable(x): ...@@ -19,7 +19,7 @@ def as_variable(x):
class TDouble(Type): class TDouble(Type):
def filter(self, data): def filter(self, data, strict=False, allow_downcast=False):
return float(data) return float(data)
def c_declare(self, name, sub, check_input=True): def c_declare(self, name, sub, check_input=True):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论