Commit Graph

12 Commits

Author SHA1 Message Date
Akuli
ee487304d7 Big diff: Use new "|" union syntax (#5872) 2021-08-08 11:05:21 +02:00
Oleg Höfling
725b5ef71b Loosen mapping as input type in mapping representer (#5644)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-06-16 12:05:43 +02:00
Oleg Höfling
5a1dbf7cee loosen type restrictions for mapping representer input (#5640)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-06-15 15:35:12 +02:00
Oleg Höfling
03809dc604 Add type hints for representer registration functions (#5636)
bump version to the current major release of PyYAML

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-06-14 17:53:59 +02:00
Oleg Höfling
b65fa0ed52 Add stubs for yaml.nodes and yaml.representer (py3) (#5634)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-06-14 16:13:45 +02:00
Oleg Höfling
0744d8c30a Add stubs for yaml.error (#5627)
* type yaml.error
2021-06-13 15:13:42 +03: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
Kaleb Barrett
2be836bf6d Add yaml.UnsafeLoader (#5441) 2021-05-13 18:24:23 -07:00
Shantanu
fa9d5a5e9f future first: switch the order of some if statements (#5206)
Since we're adding this to our contribution guidelines in
https://github.com/python/typeshed/pull/5205
2021-04-11 06:44:18 -07:00
Sorin Sbarnea
2d3bf41b18 Improve type for yaml composer (#5144) 2021-04-08 07:29:11 -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