Skip to content

Commit bd9b7b6

Browse files
authored
chore: fix failing type checks (#114)
1 parent 9401425 commit bd9b7b6

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

google/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from typing import Iterable
15+
from typing import List
1616

1717
try:
1818
import pkg_resources
@@ -21,4 +21,4 @@
2121
except ImportError:
2222
import pkgutil
2323

24-
__path__: Iterable[str] = pkgutil.extend_path(__path__, __name__)
24+
__path__: List[str] = pkgutil.extend_path(__path__, __name__)

google/cloud/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
from typing import Iterable
14+
from typing import List
1515

1616
try:
1717
import pkg_resources
@@ -20,4 +20,4 @@
2020
except ImportError:
2121
import pkgutil
2222

23-
__path__: Iterable[str] = pkgutil.extend_path(__path__, __name__)
23+
__path__: List[str] = pkgutil.extend_path(__path__, __name__)

google/cloud/sql/connector/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
"""
1616

17-
from typing import Iterable
17+
from typing import List
1818

1919
from .connector import connect
2020
from .instance_connection_manager import CloudSQLConnectionError, IPTypes
@@ -29,4 +29,4 @@
2929
except ImportError:
3030
import pkgutil
3131

32-
__path__: Iterable[str] = pkgutil.extend_path(__path__, __name__)
32+
__path__: List[str] = pkgutil.extend_path(__path__, __name__)

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def lint(session):
3333
serious code quality issues.
3434
"""
3535
session.install(
36-
"flake8", "flake8-annotations", "black", "mypy", "sqlalchemy-stubs", "twine")
36+
"flake8", "flake8-annotations", "black", "mypy", "sqlalchemy-stubs",
37+
"types-pkg-resources", "types-PyMySQL", "twine")
3738
session.install("-r", "requirements.txt")
3839
session.run("black", "--check", *BLACK_PATHS)
3940
session.run("flake8", "google", "tests")

0 commit comments

Comments
 (0)