Skip to content

Commit

Permalink
Merge pull request #136 from PermutaTriangle/develop
Browse files Browse the repository at this point in the history
Version 2.0.1
  • Loading branch information
enadeau authored Jul 23, 2020
2 parents 0de5a3e + 7e2f34e commit 61dc391
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

## 2.0.1 - 2020-07-23
### Fixed
- Typing for `apply` in `Perm` fixed. It is now of the same base type as argument.

## 2.0.0 - 2020-07-20
### Added
- Two new tools added to permtools. A command to check if a class has a regular
Expand Down
4 changes: 3 additions & 1 deletion permuta/patterns/perm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
Optional,
Set,
Tuple,
TypeVar,
Union,
)

Expand All @@ -35,6 +36,7 @@
TupleType = Tuple[int]
else:
TupleType = tuple
ApplyType = TypeVar("ApplyType")


class Perm(TupleType, Patt):
Expand Down Expand Up @@ -1999,7 +2001,7 @@ def _pattern_details(self) -> List[Tuple[int, int, int, int]]:
]
return self._cached_pattern_details

def apply(self, iterable: Iterable[int]) -> Tuple[int, ...]:
def apply(self, iterable: Iterable[ApplyType]) -> Tuple[ApplyType, ...]:
"""Permute an iterable using the perm.
Examples:
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def read(fname):

setup(
name="permuta",
version="2.0.0",
version="2.0.1",
author="Permuta Triangle",
author_email="[email protected]",
description="A comprehensive high performance permutation library.",
Expand All @@ -29,6 +29,7 @@ def read(fname):
long_description=read("README.rst"),
python_requires=">=3.6",
include_package_data=True,
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
Expand Down

0 comments on commit 61dc391

Please sign in to comment.