Skip to content

Commit 1e750e4

Browse files
committed
fix: correct type hint for Value
1 parent 465758c commit 1e750e4

2 files changed

Lines changed: 23 additions & 22 deletions

File tree

textcompose/core/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
if TYPE_CHECKING:
66
from textcompose.core.component import Component # type: ignore[unused-import]
77

8-
Value = Union[MagicFilter, str, Callable[[Mapping[str, Any]], str | None], "Component"]
8+
Value = Union[MagicFilter, str, Callable[[Mapping[str, Any]], Union[str, None]], "Component"]
99
Condition = Union[MagicFilter, Callable[[Mapping[str, Any]], bool], bool, str, "Component"]

uv.lock

Lines changed: 22 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)