Skip to content

Commit

Permalink
Switched to python 3.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
wheerd committed Jan 10, 2017
1 parent e32f501 commit f74b42c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
python:
- 3.5
- 3.6
install:
- pip install -r requirements.txt
- pip install coveralls
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
# texinfo_no_detailmenu = False

intersphinx_mapping = {
'python': ('https://docs.python.org/3.5', None),
'python': ('https://docs.python.org/3.6', None),
'multiset': ('http://multiset.readthedocs.io/en/latest/', None),
}

Expand Down
4 changes: 2 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
channels:
- conda-forge
name: py35
name: py36
dependencies:
- openssl
- pip
- python=3.5.2
- python=3.6
- readline
- setuptools
- sqlite
Expand Down
2 changes: 1 addition & 1 deletion matchpy/expressions/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __prepare__(mcs, cls, bases, **kwargs): # pylint: disable=unused-argument
_ArityBase = NamedTuple('_ArityBase', [('min_count', int), ('fixed_size', bool)])


class Arity(_ArityBase, Enum, metaclass=_ArityMeta, _root=True):
class Arity(_ArityBase, Enum, metaclass=_ArityMeta):
"""Arity of an operator as (`int`, `bool`) tuple.
The first component is the minimum number of operands.
Expand Down
6 changes: 3 additions & 3 deletions matchpy/matching/many_to_one.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import math
from collections import deque
from typing import (Container, Dict, Iterable, Iterator, List, NamedTuple, Optional, Sequence, Set, Tuple, Union)
from typing import (Container, Dict, Iterable, Iterator, List, NamedTuple, Optional, Sequence, Set, Tuple, Type, Union)

from graphviz import Digraph
from multiset import Multiset
Expand All @@ -39,8 +39,8 @@

__all__ = ['ManyToOneMatcher']

LabelType = Union[FrozenExpression, type] # TODO: in py 3.6 properly use Type[]
HeadType = Optional[Union[FrozenExpression, type]] # TODO: in py 3.6 properly use Type[]
LabelType = Union[FrozenExpression, Type[Operation]]
HeadType = Optional[Union[FrozenExpression, Type[Operation], Type[Symbol]]]

_State = NamedTuple('_State', [
('transitions', Dict[LabelType, '_Transition']),
Expand Down

0 comments on commit f74b42c

Please sign in to comment.