jsonschema: mark type alias explicitly (#8024)

This commit is contained in:
Alex Waygood
2022-06-06 22:44:46 +01:00
committed by GitHub
parent 43a9ab08d7
commit 7322acbb97

View File

@@ -2,10 +2,11 @@ from _typeshed import Self, SupportsRichComparison
from collections import deque
from collections.abc import Callable, Container, Iterable, Sequence
from typing import Any
from typing_extensions import TypeAlias
from jsonschema import _utils, protocols
_RelevanceFuncType = Callable[[ValidationError], SupportsRichComparison]
_RelevanceFuncType: TypeAlias = Callable[[ValidationError], SupportsRichComparison]
WEAK_MATCHES: frozenset[str]
STRONG_MATCHES: frozenset[str]