Skip to content

Commit

Permalink
Fix typing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Nov 19, 2017
1 parent 6d2e39e commit 0dd4dbe
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions xphyle/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,10 @@
import stat
import sys
from types import ModuleType
# HACK: critical features were introduced in python 3.5.2, so we force use
# of backports.typing even in 3.5
if sys.version_info < (3, 6):
from backports.typing import *
from backports.typing import IO
from backports.typing.re import *
else:
from typing import *
# ISSUE: Not sure why I have to import IO separately
from typing import IO
from typing.re import *
from typing import *
# ISSUE: Not sure why I have to import IO separately
from typing import IO
from typing.re import *

# ISSUE: there are several mypy errors due to incomplete enum support.
# enums should be fully suported in the next version of mypy (>0.501).
Expand Down

0 comments on commit 0dd4dbe

Please sign in to comment.