Skip to content

Commit 86e227c

Browse files
committed
typing fix
1 parent b8f3207 commit 86e227c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/textual/visual.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from functools import cached_property, lru_cache
66
from itertools import islice
77
from marshal import dumps, loads
8-
from typing import TYPE_CHECKING, Any, Iterable, Protocol, cast
8+
from typing import TYPE_CHECKING, Any, Iterable, Protocol
99

1010
import rich.repr
1111
from rich.console import Console, ConsoleOptions, RenderableType
@@ -293,7 +293,7 @@ def combine(cls, styles: Iterable[Style]) -> Style:
293293
@property
294294
def meta(self) -> dict[str, Any]:
295295
"""Get meta information (can not be changed after construction)."""
296-
return {} if self._meta is None else cast(dict[str, Any], loads(self._meta))
296+
return {} if self._meta is None else loads(self._meta)
297297

298298

299299
class Visual(ABC):

0 commit comments

Comments
 (0)