Title: type annotation for docutils is incomplete · Issue #1269 · python/typeshed · GitHub
Open Graph Title: type annotation for docutils is incomplete · Issue #1269 · python/typeshed
X Title: type annotation for docutils is incomplete · Issue #1269 · python/typeshed
Description: It seems third_party/3/docutils contains only very few classes and modules of docutils. https://github.com/python/typeshed/tree/master/third_party/3/docutils For example, the only one class reference is defined at nodes.pyi. But actual d...
Open Graph Description: It seems third_party/3/docutils contains only very few classes and modules of docutils. https://github.com/python/typeshed/tree/master/third_party/3/docutils For example, the only one class referen...
X Description: It seems third_party/3/docutils contains only very few classes and modules of docutils. https://github.com/python/typeshed/tree/master/third_party/3/docutils For example, the only one class referen...
Opengraph URL: https://github.com/python/typeshed/issues/1269
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"type annotation for docutils is incomplete","articleBody":"It seems `third_party/3/docutils` contains only very few classes and modules of docutils.\r\nhttps://github.com/python/typeshed/tree/master/third_party/3/docutils\r\n\r\nFor example, the only one class `reference` is defined at `nodes.pyi`. But actual `docutils.nodes` module provides many classes and functions:\r\n```\r\n>>> import docutils.nodes\r\n>>> dir(docutils.nodes)\r\n['Admonition', 'BackLinkable', 'Bibliographic', 'Body', 'Decorative', 'Element', 'FixedTextElement', 'General', 'GenericNodeVisitor', 'Inline', 'Invisible', 'Labeled', 'Node', 'NodeFound', 'NodeVisitor', 'Part', 'PreBibliographic', 'Referential', 'Resolvable', 'Root', 'Sequential', 'SkipChildren', 'SkipDeparture', 'SkipNode', 'SkipSiblings', 'SparseNodeVisitor', 'Special', 'StopTraversal', 'Structural', 'Targetable', 'Text', 'TextElement', 'Titular', 'TreeCopyVisitor', 'TreePruningException', '__builtins__', '__cached__', '__doc__', '__docformat__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '_add_node_class_names', '_call_default_departure', '_call_default_visit', '_non_id_at_ends', '_non_id_chars', '_non_id_translate', '_non_id_translate_digraphs', '_nop', 'abbreviation', 'acronym', 'address', 'admonition', 'attention', 'attribution', 'author', 'authors', 'block_quote', 'bullet_list', 'caption', 'caution', 'citation', 'citation_reference', 'classifier', 'colspec', 'comment', 'compound', 'contact', 'container', 'copyright', 'danger', 'date', 'decoration', 'definition', 'definition_list', 'definition_list_item', 'description', 'docinfo', 'doctest_block', 'document', 'dupname', 'emphasis', 'ensure_str', 'entry', 'enumerated_list', 'error', 'field', 'field_body', 'field_list', 'field_name', 'figure', 'footer', 'footnote', 'footnote_reference', 'fully_normalize_name', 'generated', 'header', 'hint', 'image', 'important', 'inline', 'label', 'legend', 'line', 'line_block', 'list_item', 'literal', 'literal_block', 'make_id', 'math', 'math_block', 'node_class_names', 'note', 'option', 'option_argument', 'option_group', 'option_list', 'option_list_item', 'option_string', 'organization', 'os', 'paragraph', 'pending', 'problematic', 'pseudo_quoteattr', 'raw', 're', 'reference', 'reprunicode', 'revision', 'row', 'rubric', 'section', 'serial_escape', 'sidebar', 'status', 'strong', 'subscript', 'substitution_definition', 'substitution_reference', 'subtitle', 'superscript', 'sys', 'system_message', 'table', 'target', 'tbody', 'term', 'tgroup', 'thead', 'tip', 'title', 'title_reference', 'topic', 'transition', 'types', 'unicodedata', 'version', 'warning', 'warnings', 'whitespace_normalize_name']\r\n```\r\n\r\nAs a result, mypy fails for hinting.\r\n```\r\nfrom docutils import nodes\r\n\r\ndef hello(node):\r\n # type: (nodes.Node) -> None\r\n pass\r\n```\r\n```\r\n$ mypy foo.py\r\nfoo.py:3: error: Name 'nodes.Node' is not defined\r\n```","author":{"url":"https://github.com/tk0miya","@type":"Person","name":"tk0miya"},"datePublished":"2017-05-13T16:02:32Z","url":"https://github.com/python/typeshed/issues/1269"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f8ee1b44-0d18-8ac2-af0f-0d19cd7dd0f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACF8:1A12A9:204F3C:2B2065:6B002268 |
| html-safe-nonce | ba687bf60fda51d71156ba3a71a829c6487661382af03880cf303118bd20ca42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0Y4OjFBMTJBOToyMDRGM0M6MkIyMDY1OjZCMDAyMjY4IiwidmlzaXRvcl9pZCI6IjQyNjcyNDAxMzEzOTM0OTU2NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a4e690d6e3eba06805def7691a0f975c97206510eb54cfc2802b49c085c987ba |
| hovercard-subject-tag | issue:228482484 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typeshed/1269/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6cdd368c8ae721e85646383d472c5c5b08a528cd3151d43404dae308e725e073/python/typeshed/issues/1269 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6cdd368c8ae721e85646383d472c5c5b08a528cd3151d43404dae308e725e073/python/typeshed/issues/1269 |
| og:image:alt | It seems third_party/3/docutils contains only very few classes and modules of docutils. https://github.com/python/typeshed/tree/master/third_party/3/docutils For example, the only one class referen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tk0miya |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width