This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
CI run against latest deps is failing #12901
Comments
synapse/synapse/config/_util.py Lines 43 to 63 in 4b965c8
I think the underlying change was the recent types-jsonschema release, see python/typeshed#7950. The stubs now say that |
The stubs are incorrect! import jsonschema
SCHEMA = {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "array",
"items": {"type": "string"},
}
document = ["a", 12345, "c", "d"]
try:
jsonschema.validate(document, SCHEMA)
except jsonschema.ValidationError as e:
print(repr(e))
for path_entry in e.absolute_path:
print(repr(path_entry), type(path_entry))
|
Proposed a fix upstream at python/typeshed#7980 |
DMRobertson
pushed a commit
that referenced
this issue
May 29, 2022
Fixes #12901 by incoprating python/typeshed#7980 (The olddeps will automatically be fixed now, but let's pull in the more complete stubs for day-to-day use while we're at it.)
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
See https://github.com/matrix-org/synapse/actions/runs/2407332978
The text was updated successfully, but these errors were encountered: