From c9629b572d35519c4db6cf0d24a56e716874a119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Tue, 3 Oct 2023 11:31:04 +0100 Subject: [PATCH] Drop bound in ExpectType. The bound isn't strictly necessary and it wasn't there in the first place, so we won't add it here either. --- src/textual/css/query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textual/css/query.py b/src/textual/css/query.py index 4326bb7665..a6af6ae679 100644 --- a/src/textual/css/query.py +++ b/src/textual/css/query.py @@ -48,9 +48,9 @@ class WrongType(QueryError): """Query result was not of the correct type.""" -QueryType = TypeVar("QueryType", bound=Widget) +QueryType = TypeVar("QueryType", bound="Widget") """Type variable used to type generic queries.""" -ExpectType = TypeVar("ExpectType", bound=Widget) +ExpectType = TypeVar("ExpectType") """Type variable used to further restrict queries."""