Skip to content

Commit ddef81d

Browse files
committed
fix more mypy errors
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
1 parent 2543de9 commit ddef81d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

s3_management/backup_conda.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
import argparse
88
import hashlib
99
import os
10-
import urllib
10+
import urllib.request
1111
from typing import List, Optional
1212

13-
import boto3
14-
import conda.api
13+
import boto3 # type: ignore[import-untyped]
14+
import conda.api # type: ignore[import-not-found]
1515

1616

1717
S3 = boto3.resource("s3")

s3_management/update_dependencies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import re
22
from typing import Dict, List
33

4-
import boto3
4+
import boto3 # type: ignore[import-untyped]
55

66

77
S3 = boto3.resource("s3")
@@ -225,7 +225,7 @@ def upload_missing_whls(
225225

226226
pypi_latest_packages = get_wheels_of_version(pypi_idx, selected_version)
227227

228-
download_latest_packages = []
228+
download_latest_packages: Dict[str, str] = {}
229229
if not only_pypi:
230230
download_idx = parse_simple_idx(
231231
f"https://download.pytorch.org/{prefix}/{pkg_name}"

0 commit comments

Comments
 (0)