use union

This commit is contained in:
Daylin Morgan 2023-05-26 18:08:09 -05:00
parent 1cabd09cc4
commit 43e5bde290
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -6,8 +6,6 @@
__import__("viv").use("requests", "bs4")
"""
from __future__ import annotations
import hashlib
import itertools
import json
@ -41,6 +39,7 @@ from types import TracebackType
from typing import (
Any,
Dict,
Generator,
List,
NoReturn,
Optional,
@ -48,10 +47,10 @@ from typing import (
TextIO,
Tuple,
Type,
Generator,
Union,
)
__version__ = "22.12a3-59-g7003373-dev"
__version__ = "22.12a3-61-g9231db5-dev"
@dataclass
@ -879,7 +878,7 @@ class Viv:
)
def _get_sources(self) -> None:
self.local_source: Path | str
self.local_source: Union[Path, str]
self.running_source = Path(__file__).resolve()
self.local = not str(self.running_source).startswith("/proc/")
if self.local: