Skip to content

Commit bebadb0

Browse files
authored
Fix command palette TimeoutError error (#3321)
* Reinstate the import of TimeoutError from asyncio Fixes #3320 It looks like eaa7496 smuggled this change in and caused the command palette to cease to work correctly on any version of Python before 3.11. This should make it work on all Pythons from 3.7 onward again. * Update the CHANGELOG
1 parent 137a987 commit bebadb0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## Unreleased
9+
10+
### Fixed
11+
12+
- Fixed the command palette crashing with a `TimeoutError` in any Python before 3.11 https://github.com/Textualize/textual/issues/3320
13+
814
## [0.37.0] - 2023-09-15
915

1016
### Added

src/textual/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from __future__ import annotations
88

99
from abc import ABC, abstractmethod
10-
from asyncio import CancelledError, Queue, Task, wait, wait_for
10+
from asyncio import CancelledError, Queue, Task, TimeoutError, wait, wait_for
1111
from dataclasses import dataclass
1212
from functools import total_ordering
1313
from time import monotonic

0 commit comments

Comments
 (0)