コード例 #1
0
ファイル: testdocstring.py プロジェクト: yang/mypy-hack
 def assert_annotation(self, docstring, args, rettype):
     parsed = parse_docstring(docstring)
     assert parsed is not None
     assert_equal(parsed.args, args)
     assert_equal(parsed.rettype, rettype)
コード例 #2
0
ファイル: testdocstring.py プロジェクト: ChaiYuanUMN/mypy
 def assert_annotation(self, docstring, args, rettype):
     parsed = parse_docstring(docstring)
     assert parsed is not None
     assert_equal(parsed.args, args)
     assert_equal(parsed.rettype, rettype)
コード例 #3
0
ファイル: testdocstring.py プロジェクト: yang/mypy-hack
 def assert_no_annotation(self, docstring):
     assert_equal(parse_docstring(docstring), None)
コード例 #4
0
ファイル: testdocstring.py プロジェクト: ChaiYuanUMN/mypy
 def assert_no_annotation(self, docstring):
     assert_equal(parse_docstring(docstring), None)