add mypy check for return-any (#24379)

* add mypy check for return-any

* remove unused import

* typing

* remove unnecessary variable typing

* cleanup

* cleanup

* bump submodules

* small fixes

* only a problem on mac

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: d2eef1955c777ef6110c7a74d2a9ca9e4e1d958c
This commit is contained in:
Dylan Herman
2022-05-12 07:59:00 -05:00
committed by GitHub
parent f69d9c7326
commit 2dfba97175
22 changed files with 64 additions and 49 deletions
+3 -3
View File
@@ -55,7 +55,7 @@ def get_origin(default: Optional[str] = None) -> Optional[str]:
@cache
def get_normalized_origin(default: Optional[str] = None) -> Optional[str]:
origin = get_origin()
origin: Optional[str] = get_origin()
if origin is None:
return default
@@ -74,7 +74,7 @@ def get_version() -> str:
@cache
def get_short_version() -> str:
return get_version().split('-')[0]
return get_version().split('-')[0] # type: ignore
@cache
def is_prebuilt() -> bool:
@@ -85,7 +85,7 @@ def is_prebuilt() -> bool:
def is_comma_remote() -> bool:
# note to fork maintainers, this is used for release metrics. please do not
# touch this to get rid of the orange startup alert. there's better ways to do that
origin = get_origin()
origin: Optional[str] = get_origin()
if origin is None:
return False