Skip to content

Commit f304cf4

Browse files
committed
Simplify import of Protocol
1 parent 06aed54 commit f304cf4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

adafruit_logging.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,8 @@
6262
from collections import namedtuple
6363

6464
try:
65-
from typing import Optional
66-
67-
try:
68-
from typing import Protocol
69-
except ImportError:
70-
from typing_extensions import Protocol
65+
from typing import Optional, Hashable
66+
from typing_extensions import Protocol
7167

7268
class WriteableStream(Protocol):
7369
"""Any stream that can ``write`` strings"""

0 commit comments

Comments
 (0)