Shantanu
e90ee8e0d9
[stubsabot] Bump jsonschema to 4.7.* ( #8299 )
2022-07-15 08:40:05 +02:00
Shantanu
288c6ac447
Bump jsonschema to 4.6.* ( #8161 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2022-06-26 08:18:41 +05:30
Alex Waygood
7322acbb97
jsonschema: mark type alias explicitly (#8024 )
2022-06-06 14:44:46 -07:00
Stephen Rosen
17e7cc7d3c
Fix exception types for jsonschema._format ( #7990 )
...
The annotated type for the `raises` argument on format checkers was
Exception | tuple[Exception, ...]
when it should read
type[Exception] | tuple[type[Exception], ...]
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2022-05-30 17:14:33 +01:00
Stephen Rosen
b2aaed1e68
Fix jsonschema exception str|int containers ( #7981 )
...
schema_path, relative_schema_path, and absolute_schema_path are all
(related) attributes of `jsonschema` errors which contain `str | int`
but were accidentally annotated as containing `str`. Fix them for
accuracy.
2022-05-29 22:22:34 +01:00
David Robertson
ea16964d87
jsonschema: {relative,absolute}_path can hold ints ( #7980 )
2022-05-29 16:38:54 +01:00
Stephen Rosen
f52da1e8b0
Flesh out more of jsonschema stubs ( #7950 )
...
Apply more detailed annotations to the format module and most of the
exceptions module.
2022-05-27 17:33:32 +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
Stephen Rosen
134f047402
jsonschema: mark schemas as Mapping[str, Any] ( #7489 )
2022-03-14 17:11:33 +01:00
Stephen Rosen
a3027d3b96
jsonschema: RefResolver.referrer is a dict[str, Any] ( #7487 )
2022-03-14 16:27:08 +01:00
Sebastian Rittau
c2182fdd3e
Treat validators as classes ( #7035 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-01-25 07:43:40 -08:00
Sebastian Rittau
fabd842857
Annotate parts of jsonschema.validators and URIDict ( #7025 )
2022-01-24 16:42:29 +01:00
Jelle Zijlstra
85318d1b21
Cleanup: do not quote types unnecessarily ( #6931 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-16 20:18:17 +02:00
Stephen Rosen
806a5bcece
Add jsonschema.protocols to library stubs ( #6614 )
...
`jsonschema.protocols.Validator` was introduced in `jsonschema` v4.3.0
It's also available under the name `jsonschema.Validator`.
2021-12-17 13:30:58 +01:00
Michael A. Smith
6c9efbae9d
Updated stubs to jsonschema 4.2 ( #6486 )
2021-12-06 17:27:33 +01:00
Sebastian Rittau
9f86972350
Add star to all non-0.1 versions ( #6146 )
2021-10-11 13:41:19 -07:00
Jukka Lehtosalo
937d31df69
Stubs for jsonschema ( #5784 )
2021-07-15 17:28:57 +02:00