MCPcopy Index your code
hub / github.com/python/cpython / test_async_annotation

Method test_async_annotation

Lib/test/test_pydoc/test_pydoc.py:1842–1852  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1840""")
1841
1842 def test_async_annotation(self):
1843 async def coro_function(ign) -> int:
1844 return 1
1845
1846 text = pydoc.plain(pydoc.plaintext.document(coro_function))
1847 self.assertIn('async coro_function', text)
1848
1849 html = pydoc.HTMLDoc().document(coro_function)
1850 self.assertIn(
1851 'async <a name="-coro_function"><strong>coro_function',
1852 html)
1853
1854 def test_async_generator_annotation(self):
1855 async def an_async_generator():

Callers

nothing calls this directly

Calls 3

plainMethod · 0.80
documentMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected