Sebastian Rittau
ca8ad657d3
[jsonschema] Bump to 4.20.* ( #11036 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-11-17 12:40:08 +00:00
Jelle Zijlstra
9fb52127ab
jsonschema: move addionalItems ( #10955 )
...
daa40b3eaf
Fixes #10953
2023-10-30 17:40:28 -07:00
Alex Waygood
3f9a3accc8
Declare that types-jsonschema requires Python 3.8+ ( #10775 )
2023-09-25 20:10:12 +02:00
Sebastian Rittau
6ca7505af7
Bump jsonschema to 4.19.* ( #10583 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-09-22 20:11:54 -07:00
Sebastian Rittau
afe18e95a9
Add an upstream_repository field to METADATA.toml ( #10487 )
...
Closes : #10478
2023-07-20 16:45:41 +02:00
Sebastian Rittau
1925730585
[jsonschema] Use Incomplete instead of Any ( #10451 )
...
Replace `Any` with `Incomplete`
2023-07-13 13:34:24 +01:00
Avasam
db0149859c
Add partial_stub metadata field ( #10157 )
2023-05-10 17:04:18 +02:00
Alex Waygood
af884b236b
Add defaults for third-party stubs I-L ( #9955 )
2023-03-27 19:19:55 +02: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
Alex Waygood
0ef9c3f8e8
Enable flake8-pyi's Y037 ( #9686 )
2023-02-06 19:01:02 -08:00
Alex Waygood
4fea314594
Replace Any with Incomplete in many places ( #9558 )
2023-01-18 08:48:16 +00:00
Eddie Darling
0880741ba3
Update jsonschema protocols.pyi ( #9295 )
...
These take in an instance, which need not be a JSON object.
They could for example be arrays.
See [this example](https://python-jsonschema.readthedocs.io/en/stable/api/jsonschema/protocols/#jsonschema.protocols.Validator.iter_errors ) on the jsonschema docs.
```python
>>> schema = {"maxItems" : 2}
>>> Draft202012Validator(schema).is_valid([2, 3, 4])
False
```
2022-12-06 21:08:11 +00:00
Nikita Sobolev
62a6c3d616
Annotate known magic-method return types ( #9131 )
2022-11-08 18:28:42 +00:00
Nikita Sobolev
d317458af6
Bump jsonschema to 4.17.* ( #9066 )
2022-11-02 17:41:14 +00:00
Kaisen Chen
4bd13ff419
Fix RefResolver's context manager return types ( #8898 )
2022-10-14 22:07:38 +03:00
Alex Waygood
48e76e8a56
Bump mypy to 0.981 ( #8796 )
2022-09-26 17:14:33 -07:00
github-actions[bot]
f7539fcac5
[stubsabot] Bump jsonschema to 4.16.* ( #8748 )
...
Release: https://pypi.org/project/jsonschema/4.16.0/
Homepage: https://github.com/python-jsonschema/jsonschema
Changelog: https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst
Diff: https://github.com/python-jsonschema/jsonschema/compare/v4.15.0...v4.16.0
2022-09-15 20:05:11 -06:00
Kevin Kirsche
82cccac369
jsonschema._format: update some annotations to match upstream (#8673 )
2022-09-03 12:54:48 +01:00
github-actions[bot]
bf3b1f0c4d
[stubsabot] Bump jsonschema to 4.15.* ( #8665 )
...
Co-authored-by: stubsabot <>
2022-09-01 18:46:51 -07:00
github-actions[bot]
ef25fc6c9b
[stubsabot] Bump jsonschema to 4.14.* ( #8619 )
2022-08-25 19:36:01 -07:00
Stephen Rosen
2c534dc220
Improve annotation of jsonschema.validators.create ( #8608 )
2022-08-25 15:25:15 +02:00
github-actions[bot]
3b767d1618
[stubsabot] Bump jsonschema to 4.12.* ( #8560 )
...
Co-authored-by: stubsabot <>
2022-08-18 17:33:41 -07:00
github-actions[bot]
67ff035dbb
[stubsabot] Bump jsonschema to 4.9.* ( #8491 )
...
* [stubsabot] Bump jsonschema to 4.9.*
* Remove jsonschema._reflect
Co-authored-by: stubsabot <>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2022-08-05 11:26:24 +01:00
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