From 7322acbb970e9bc071cba1904d19f2fe984b2357 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 6 Jun 2022 22:44:46 +0100 Subject: [PATCH] `jsonschema`: mark type alias explicitly (#8024) --- 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 62016a315..f29675430 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]