Skip to content

Commit 363fe22

Browse files
committed
words
1 parent 7bfdc5d commit 363fe22

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9-
## [3.7.2] - 2025-07-10
9+
## [3.7.2] - Unreleased
1010

1111
### Fixed
1212

src/textual/css/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def first(
242242
if expect_type is not None:
243243
if not isinstance(first, expect_type):
244244
raise WrongType(
245-
f"Query value is the wrong type; expected {expect_type}, found {first}"
245+
f"Query value is the wrong type; expected type {expect_type.__name__!r}, found {first}"
246246
)
247247
return first
248248
else:
@@ -324,7 +324,7 @@ def last(
324324
last = self.nodes[-1]
325325
if expect_type is not None and not isinstance(last, expect_type):
326326
raise WrongType(
327-
f"Query value is the wrong type; expected {expect_type}, found {last}"
327+
f"Query value is the wrong type; expected type {expect_type.__name__!r}, found {last}"
328328
)
329329
return last
330330

0 commit comments

Comments
 (0)