Skip to content

Commit cf17c20

Browse files
committed
Place Protocol import in else block
1 parent 08e31ca commit cf17c20

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_requests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def cast(_t, value):
5252
from types import ModuleType, TracebackType
5353
from typing import Any, Dict, List, Optional, Tuple, Type, Union, cast
5454

55-
try:
56-
from typing import Protocol
57-
except ImportError:
58-
from typing_extensions import Protocol
55+
try:
56+
from typing import Protocol
57+
except ImportError:
58+
from typing_extensions import Protocol
5959

6060
# Based on https://github.com/python/typeshed/blob/master/stdlib/_socket.pyi
6161
class CommonSocketType(Protocol):

0 commit comments

Comments
 (0)