Skip to content

Commit e4320e7

Browse files
committed
chore: fix flake8 lint errors related to import ordering
1 parent 1030b39 commit e4320e7

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

packages/google-auth/google/auth/transport/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444

4545
import abc
4646
import http.client as http_client
47+
import importlib
48+
import sys
4749

4850
DEFAULT_RETRYABLE_STATUS_CODES = (
4951
http_client.INTERNAL_SERVER_ERROR,
@@ -122,11 +124,7 @@ def __call__(
122124
raise NotImplementedError("__call__ must be implemented.")
123125

124126

125-
import sys # noqa: E402
126-
127127
if sys.version_info < (3, 15):
128-
import importlib
129-
130128
for _lazy_mod in __lazy_modules__:
131129
try:
132130
importlib.import_module(_lazy_mod)

packages/google-auth/tests/transport/test_lazy_imports.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
import sys
16+
1617
import pytest
1718

1819
# List of modules we expect to be lazy

0 commit comments

Comments
 (0)