From c8c5953aa05ca48764d2e7a80a43250b8bd08e77 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Mon, 16 Jan 2023 10:09:06 +0000 Subject: [PATCH] `Xlib`: Import `Pattern` from `re`, not `typing` (#9544) Refs https://github.com/PyCQA/flake8-pyi/pull/324 --- stubs/python-xlib/Xlib/display.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stubs/python-xlib/Xlib/display.pyi b/stubs/python-xlib/Xlib/display.pyi index eaf74a6f5..b307a68e5 100644 --- a/stubs/python-xlib/Xlib/display.pyi +++ b/stubs/python-xlib/Xlib/display.pyi @@ -1,6 +1,7 @@ from collections.abc import Callable, Iterable, Sequence +from re import Pattern from types import FunctionType, MethodType -from typing import Any, Pattern, overload +from typing import Any, overload from typing_extensions import Literal, TypeAlias, TypedDict from Xlib import error