Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only import on newer versions
  • Loading branch information
Ivan Levkivskyi
Ivan Levkivskyi committed Jun 9, 2017
commit cd137de1f220313fc3dc230b48f7284e6022907d
3 changes: 2 additions & 1 deletion src/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
import collections.abc as collections_abc
except ImportError:
import collections as collections_abc # Fallback for PY3.2.
import _collections_abc # Needed for private function _check_methods
if sys.version_info[:2] >= (3, 5):
import _collections_abc # Needed for private function _check_methods # noqa
try:
from types import WrapperDescriptorType, MethodWrapperType, MethodDescriptorType
except ImportError:
Expand Down