mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-10 03:13:14 -06:00
use union
This commit is contained in:
parent
1cabd09cc4
commit
43e5bde290
1 changed files with 4 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue