mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-12 20:23:15 -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")
|
__import__("viv").use("requests", "bs4")
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import itertools
|
import itertools
|
||||||
import json
|
import json
|
||||||
|
@ -41,6 +39,7 @@ from types import TracebackType
|
||||||
from typing import (
|
from typing import (
|
||||||
Any,
|
Any,
|
||||||
Dict,
|
Dict,
|
||||||
|
Generator,
|
||||||
List,
|
List,
|
||||||
NoReturn,
|
NoReturn,
|
||||||
Optional,
|
Optional,
|
||||||
|
@ -48,10 +47,10 @@ from typing import (
|
||||||
TextIO,
|
TextIO,
|
||||||
Tuple,
|
Tuple,
|
||||||
Type,
|
Type,
|
||||||
Generator,
|
Union,
|
||||||
)
|
)
|
||||||
|
|
||||||
__version__ = "22.12a3-59-g7003373-dev"
|
__version__ = "22.12a3-61-g9231db5-dev"
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
@ -879,7 +878,7 @@ class Viv:
|
||||||
)
|
)
|
||||||
|
|
||||||
def _get_sources(self) -> None:
|
def _get_sources(self) -> None:
|
||||||
self.local_source: Path | str
|
self.local_source: Union[Path, str]
|
||||||
self.running_source = Path(__file__).resolve()
|
self.running_source = Path(__file__).resolve()
|
||||||
self.local = not str(self.running_source).startswith("/proc/")
|
self.local = not str(self.running_source).startswith("/proc/")
|
||||||
if self.local:
|
if self.local:
|
||||||
|
|
Loading…
Reference in a new issue