mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-21 18:20:45 -06:00
chore: update type checking
This commit is contained in:
parent
0e5ac7c9c9
commit
6ef2f765d6
1 changed files with 7 additions and 3 deletions
|
@ -1363,7 +1363,7 @@ class v_packaging_Specifier(v_packaging_BaseSpecifier):
|
|||
)
|
||||
self._prereleases = prereleases
|
||||
|
||||
@property
|
||||
@property # type: ignore
|
||||
def prereleases(self) -> bool:
|
||||
if self._prereleases is not None:
|
||||
return self._prereleases
|
||||
|
@ -2921,7 +2921,7 @@ def _read_metadata_block(script: str) -> dict:
|
|||
return {}
|
||||
|
||||
|
||||
def _check_python(requires: str):
|
||||
def _check_python(requires: str) -> None:
|
||||
version = Version(platform.python_version())
|
||||
if version not in SpecifierSet(requires):
|
||||
err_quit(
|
||||
|
@ -3866,7 +3866,11 @@ class Cli:
|
|||
)
|
||||
|
||||
|
||||
def _no_traceback_excepthook(exc_type, exc_val, traceback):
|
||||
def _no_traceback_excepthook(
|
||||
exc_type: type[BaseException],
|
||||
exc_val: BaseException,
|
||||
traceback: TracebackType | None,
|
||||
) -> None:
|
||||
# https://stackoverflow.com/questions/7073268/remove-traceback-in-python-on-ctrl-c
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in a new issue