Skip to content

Commit

Permalink
Support Python 3.6.0
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
jmcs committed Jun 13, 2017
1 parent 72ac139 commit dbb50ec
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions ecological/autoconfig.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
from typing import (AnyStr, ByteString, Callable, Counter, Deque, Dict, FrozenSet,
GenericMeta, List, Optional, Set, Tuple, Any, TypeVar)
from typing import (AnyStr, ByteString, Callable, Dict, FrozenSet, GenericMeta, List, Optional, Set, Tuple, Any,
TypeVar)

import os

import ast

import collections


_NOT_IMPORTED = object()


try: # Types added in Python 3.6.1
from typing import Counter, Deque
except ImportError:
Deque = Counter = _NOT_IMPORTED

_NO_DEFAULT = object()
TYPES_THAT_NEED_TO_BE_PARSED = [bool, list, set, tuple, dict]
TYPING_TO_REGULAR_TYPE = {
Expand Down

0 comments on commit dbb50ec

Please sign in to comment.