From c587b8946d06e473c1505bd9bbbc53304cd58e3b Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 6 Jun 2022 22:37:30 +0100 Subject: [PATCH] `jsonschema`: mark type alias explicitly --- stubs/jsonschema/jsonschema/exceptions.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stubs/jsonschema/jsonschema/exceptions.pyi b/stubs/jsonschema/jsonschema/exceptions.pyi index 62016a315f25..f29675430012 100644 --- a/stubs/jsonschema/jsonschema/exceptions.pyi +++ b/stubs/jsonschema/jsonschema/exceptions.pyi @@ -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]