提交 037b5c66 authored 作者: Hengjean's avatar Hengjean

Added doc.

上级 b2f12def
...@@ -444,6 +444,7 @@ count = Count() ...@@ -444,6 +444,7 @@ count = Count()
class Length(Op): class Length(Op):
# See doc in instance of this Op after the class definition.
def __eq__(self, other): def __eq__(self, other):
return type(self) == type(other) return type(self) == type(other)
...@@ -476,3 +477,8 @@ class Length(Op): ...@@ -476,3 +477,8 @@ class Length(Op):
return (1,) return (1,)
length = Length() length = Length()
"""
Returns the size of a list.
:param x: typed list.
"""
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论