Skip to content

Commit

Permalink
Drop bound in ExpectType.
Browse files Browse the repository at this point in the history
The bound isn't strictly necessary and it wasn't there in the first place, so we won't add it here either.
  • Loading branch information
rodrigogiraoserrao committed Oct 3, 2023
1 parent afd5ec1 commit c9629b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textual/css/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""


Expand Down

0 comments on commit c9629b5

Please sign in to comment.