(self)
| 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(): |