Commit Graph

37 Commits

Author SHA1 Message Date
Adam Dangoor
ce45bc3a1c Ad docutils.nodes.raw and docutils.nodes.Inline (#11312) 2024-01-25 11:25:38 +01:00
Adam Dangoor
289c3f79b0 Add type stubs for docutils.nodes.literal_block and docutils.nodes.Fi… (#11308) 2024-01-24 15:36:18 +01:00
Adam Dangoor
b96d40a16c Add substitution_defs to docutils.nodes.document (#11307) 2024-01-24 15:21:53 +01:00
Sebastian Rittau
b6eaadcfe5 Update typing_extensions imports in third-party stubs (#11245) 2024-01-05 15:40:13 +01:00
Mateusz Bysiek
7a7dba5e7a Docutils frontend fix (#10569) 2023-08-16 09:35:53 +02:00
Avasam
22b055a147 Fill in all missing upstream_repository fields (#10571)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-08-13 22:03:33 +01:00
Avasam
db0149859c Add partial_stub metadata field (#10157) 2023-05-10 17:04:18 +02:00
Nikita Sobolev
adddc4f24a Bump docutils to 0.20.* (#10167) 2023-05-10 12:40:27 +03:00
danieleades
6b5ca0b238 [docutils] Add items to docutils.node (#10102)
* Add class paragraph
* Add class TextElement
* Add Element.index(), .remove(), and .insert()
2023-05-03 12:45:08 +02:00
Jelle Zijlstra
0f270e61bf docutils: Input can take bytearray (#10108)
Part of #9006
2023-04-29 16:09:14 +01:00
danieleades
9772c425a2 docutils: add nodes.General; make Element iterable (#10099)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-04-29 15:43:39 +01:00
Alex Waygood
b9fedd20ce Add defaults for third-party stubs A-D (#9952) 2023-03-27 16:49:58 +01:00
Avasam
078c6a0958 Update Unused parameters in stubs/ (#9704)
* Update _Unused TypeAlias

* Update `object | None` params

* Replace unused `object` parameters with `Unused` alias
2023-02-21 23:52:52 -08:00
Avasam
ed6748fb32 Stubtest settings: change ignore_missing_stub default to false (#9779)
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
Alex Waygood
7180d0223b Use typing_extensions.Self instead of _typeshed.Self (#9702) 2023-02-15 11:32:43 +01:00
Nikita Sobolev
f7cb7f33b2 Use OSError instead of IOError (#9683) 2023-02-06 18:56:32 +00:00
Alex Waygood
4fea314594 Replace Any with Incomplete in many places (#9558) 2023-01-18 08:48:16 +00:00
Nikita Sobolev
ce4668a132 Use Incomplete instead of Any in __getattr__ (#8903) 2022-10-15 18:54:21 +01:00
Amethyst Reese
b4d91054e3 Add missing attributes for docutils.io (#8716)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-09-11 14:53:13 +01:00
Shantanu
ee09a67c5c [stubsabot] Bump docutils to 0.19.* (#8260) 2022-07-08 20:55:22 +01:00
Alex Waygood
b093c90a94 Use TypeAlias for type aliases where possible, part II (#7667) 2022-04-20 20:02:47 +01:00
Alex Waygood
653f2c6ba4 Third-party stubs: import from collections.abc where possible (#7637) 2022-04-16 14:52:57 +01:00
Alex Waygood
740193a8fc Use TypeAlias where possible for type aliases (#7630) 2022-04-15 18:01:00 -07:00
Martin Fischer
98d9ed44cd docutils: complete nodes.Node & bump version to 0.18.* (#7380) 2022-02-28 17:59:56 +01:00
Martin Fischer
a342a49d38 docutils: Add missing dunders to nodes.Element (#7377) 2022-02-24 11:46:05 +01:00
Martin Fischer
a287cfd925 Improve docutils stubs (#7256) 2022-02-20 16:49:11 -08:00
Alex Waygood
26e8959279 Use _typeshed.Self in docutils.VersionInfo and os.sched_param (#7117) 2022-02-02 23:30:39 +01:00
Alex Waygood
a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Alex Waygood
8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Sebastian Rittau
9f86972350 Add star to all non-0.1 versions (#6146) 2021-10-11 13:41:19 -07:00
Sam Martin
a2bc47a682 docutils - added missing stubs for __init__ methods (#5924)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-08-14 20:35:02 +03:00
Akuli
ee487304d7 Big diff: Use new "|" union syntax (#5872) 2021-08-08 11:05:21 +02:00
Shantanu
7244ea1f71 Test third party stubs with stubtest (#5615) 2021-06-13 00:17:40 +02:00
Sebastian Rittau
711580722b Enable pyright for all Python 3 stubs (#5597)
* pyright: disable reportUnknownParameterType

Unknown parameter types are preferred over Any annotations for
incomplete stubs. Especially larger stubs are expected to be
incomplete for some time and it would be a shame to lose the
other pyright warnings for those stubs.

* Also disable reportUnknownVariableType

Fix problems with tkinter

* Disable reportUnknownMemberType

Fix pyright problems
2021-06-09 07:14:22 -07:00
Sebastian Rittau
f527e96dc3 Remove docutils.nodes.reference, which has no resemblance to the implementation (#5235) 2021-04-20 14:59:39 +02:00
Sebastian Rittau
4d734e38dd Add docutils definitions and (incomplete) modules (#5192) 2021-04-16 11:50:23 -07:00
Ivan Levkivskyi
16ae4c6120 Re-organize directory structure (#4971)
See discussion in #2491

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
2021-01-27 12:00:39 +00:00