Skip to content

Commit

Permalink
renew project
Browse files Browse the repository at this point in the history
  • Loading branch information
linjing-lab committed Dec 25, 2022
1 parent 1093d77 commit a994e67
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ explain:
- sortingx-1.1.0 is the first version aligned with the `list.sort()` usage method.
- sortingx-1.1.1 is the first stable version accelerated with typing_extensions.
- sortingx-1.1.2 is the first stable version that has a return value and extends the iterable data types.
- sortingx-1.1.3 is the stable version that complete the typing of local variables and align with `sorted()` usage method.
- sortingx-1.1.3 is the version that complete the typing of local variables and align with `sorted()` usage method.
- sortingx-1.2.0 is the end version of sorting series, which optimize the kernel of generate.

## LICENSE

Expand Down
1 change: 1 addition & 0 deletions README_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
|v1.1.1|`pip install sortingx==1.1.1`|Complete Typing and Accelerate||
|v1.1.2|`pip install sortingx==1.1.2`|Support More Iterative Data Types||
|v1.1.3|`pip install sortingx==1.1.3`|Typing Check with More Local Variables||
|v1.2.0|`pip install sortingx==1.2.0`|Optimize Generate Function's Kernel||

</div>
2 changes: 1 addition & 1 deletion sortingx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

from .sorting import bubble, insert, shell, heap, quick, merge

__version__ = '1.1.3'
__version__ = '1.2.0'

assert sys.version_info >= (3, 7, 0)
2 changes: 1 addition & 1 deletion sortingx/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Data Generated by Mapping.
def generate(__iterable: List[_T], key: Optional[Callable[[_T], SupportsRichComparison]]=None) -> List[_T]:
compare: List[_T] = list(map(key, __iterable)) if key != None else __iterable
compare: List[_T] = ([[value] for value in compare] if (compare and not isinstance(compare[0], Iterable)) else compare) if key != None else __iterable
compare: List[_T] = ([[value] for value in compare] if (compare and not isinstance(compare[0], (list, tuple))) else compare) if key != None else __iterable
return compare

# Redefined Comparison Rules: A High-Speed State Selection Function.
Expand Down
1 change: 0 additions & 1 deletion sortingx/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def shell(__iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsRichCom
gap: int = int(gap / 3)
return __iterable


def heap(__iterable: Iterable[_T], key: Optional[Callable[[_T], SupportsRichComparison]]=None, reverse: bool=False) -> List[_T]:
'''
:param __iterable: iterable data.
Expand Down

0 comments on commit a994e67

Please sign in to comment.