From fb28acf81bc9fbfdcad670b410508ea46fbda932 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Mon, 7 Oct 2024 14:22:11 +0100 Subject: [PATCH] Typing --- src/textual/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/command.py b/src/textual/command.py index da4fcbc5ed..31e2f37f40 100644 --- a/src/textual/command.py +++ b/src/textual/command.py @@ -183,7 +183,7 @@ def __post_init__(self) -> None: Hits: TypeAlias = AsyncIterator["DiscoveryHit | Hit"] """Return type for the command provider's `search` method.""" -ProviderSource: TypeAlias = Iterable[type["Provider"] | Callable[[], type["Provider"]]] +ProviderSource: TypeAlias = "Iterable[type[Provider] | Callable[[], type[Provider]]]" """The type used to declare the providers for a CommandPalette."""