Skip to content

Commit 720cae0

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
sambacc: ignore mypy errors if it can't import jsonschema
Due to a somewhat hilarious misalignment of the stars the recently added jsonschema support doesn't actually work on the distro we build for. This was masked by the fact that the sambacc CI didn't test the distro level stuff that actually showed there was a problem. This change just tells mypy to chillax if it fails to import typing data for jsonschema so that it can pass the tests with or without the jsonschema library present (as it is an optional dep). Signed-off-by: John Mulligan <[email protected]>
1 parent 0c5769f commit 720cae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sambacc/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ValidationUnsupported(Exception):
5454

5555
def _schema_validate(data: dict[str, typing.Any], version: str) -> None:
5656
try:
57-
import jsonschema
57+
import jsonschema # type: ignore[import]
5858
except ImportError:
5959
raise ValidationUnsupported()
6060

0 commit comments

Comments
 (0)