Skip to content

Instantly share code, notes, and snippets.

@miohtama
Created July 6, 2015 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miohtama/52658d870cde381f9230 to your computer and use it in GitHub Desktop.
Save miohtama/52658d870cde381f9230 to your computer and use it in GitHub Desktop.
Backporting backposts.typing to Pythons < 3.5
"""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