提交 bb2b5031 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

added docstring to NullType

上级 9bbd74d7
...@@ -2,6 +2,15 @@ from type import Type ...@@ -2,6 +2,15 @@ from type import Type
from graph import Variable from graph import Variable
class NullType(Type): class NullType(Type):
"""
A type that allows no values. Used to represent expressions
that are undefined, either because they do not exist mathematically
or because the code to generate the expression has not been
implemented yet.
"""
def __init__(self, why_null = '(no explanation given)'): def __init__(self, why_null = '(no explanation given)'):
""" """
why_null: A string explaining why this variable why_null: A string explaining why this variable
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论