Correctly specify the union of types

This commit is contained in:
Dave Pearson
2022-10-12 10:45:38 +01:00
parent eb91adb15b
commit 72a166ff1d

View File

@@ -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