mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
uploader: add missing types
old-commit-hash: e03efa723b7a20f412029fa946eef99b95a5a798
This commit is contained in:
@@ -178,7 +178,7 @@ class Uploader:
|
||||
|
||||
return self.last_resp
|
||||
|
||||
def upload(self, name, key, fn, network_type, metered):
|
||||
def upload(self, name: str, key: str, fn: str, network_type: int, metered: bool) -> bool:
|
||||
try:
|
||||
sz = os.path.getsize(fn)
|
||||
except OSError:
|
||||
|
||||
Reference in New Issue
Block a user