Created
July 6, 2015 04:37
-
-
Save miohtama/52658d870cde381f9230 to your computer and use it in GitHub Desktop.
Backporting backposts.typing to Pythons < 3.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Compatibility layer between different Python versions.""" | |
import sys | |
if sys.version_info >= (3, 5): | |
import typing | |
else: | |
from backports import typing | |
# Then from compat import typing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment