mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Correctly specify the union of types
This commit is contained in:
@@ -11,7 +11,7 @@ from contextlib import redirect_stderr, redirect_stdout
|
||||
from datetime import datetime
|
||||
from pathlib import Path, PurePath
|
||||
from time import perf_counter
|
||||
from typing import Any, Generic, Iterable, Iterator, Type, TypeVar, cast
|
||||
from typing import Any, Generic, Iterable, Iterator, Type, TypeVar, cast, Union
|
||||
from weakref import WeakSet, WeakValueDictionary
|
||||
|
||||
from ._ansi_sequences import SYNC_END, SYNC_START
|
||||
@@ -119,7 +119,7 @@ class _NullFile:
|
||||
pass
|
||||
|
||||
|
||||
CSSPathType = str | PurePath | None
|
||||
CSSPathType = Union[str, PurePath, None]
|
||||
|
||||
|
||||
@rich.repr.auto
|
||||
|
||||
Reference in New Issue
Block a user