We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc4e9d2 commit ec65f34Copy full SHA for ec65f34
allensdk/core/typing.py
@@ -1,8 +1,12 @@
1
import sys
2
-if sys.version_info.minor <= 7:
+try:
3
+ # for Python 3.8 and greater
4
+ from typing import Protocol
5
+except ImportError:
6
+ # for Python 3.7 and before
7
from typing import _Protocol as Protocol
8
else:
- from typing import Protocol
9
+
10
from abc import abstractmethod
11
12
0 commit comments