Skip to content

Commit 6a86736

Browse files
fix: Invalid concurrent-processing return type (#137)
* fix: Invalid concurrentProcessing return type Fixes #136 Signed-off-by: AlexNg <[email protected]> * chore(ver): bump version from 2.0.3 to 2.0.4 --------- Signed-off-by: AlexNg <[email protected]>
1 parent 052e712 commit 6a86736

File tree

10 files changed

+33
-22
lines changed

10 files changed

+33
-22
lines changed

Diff for: CITATION.cff

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ identifiers:
99
value: 10.5281/zenodo.10799219
1010
description: This is the collection of archived snapshots of all versions of thread.
1111
- type: url
12-
value: https://github.com/python-thread/thread/releases/tag/v2.0.3
13-
description: The GitHub release URL of tag v2.0.3.
12+
value: https://github.com/python-thread/thread/releases/tag/v2.0.4
13+
description: The GitHub release URL of tag v2.0.4.
1414
- type: url
15-
value: https://pypi.org/project/thread/2.0.3
16-
description: The PyPI release URL of tag v2.0.3.
15+
value: https://pypi.org/project/thread/2.0.4
16+
description: The PyPI release URL of tag v2.0.4.
1717
cff-version: 1.2.0
1818
date-released: 2024-03-07
1919
keywords:
@@ -32,5 +32,5 @@ repository-code: https://github.com/python-thread/thread
3232
repository-artifact: https://pypi.org/project/thread
3333
title: thread
3434
type: software
35-
version: 2.0.3
35+
version: 2.0.4
3636
url: https://thread.ngjx.org

Diff for: docs/src/pages/_meta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "menu",
1616
"items": {
1717
"latest-release": {
18-
"title": "2.0.3 Latest Release",
18+
"title": "2.0.4 Latest Release",
1919
"href": "/docs/latest"
2020
},
2121
"v1-release": {

Diff for: docs/src/pages/docs/_meta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"timestamp": false
1111
}
1212
},
13-
"latest": "v2.0.3 Latest",
13+
"latest": "v2.0.4 Latest",
1414
"v1": "v1.1.1"
1515
}

Diff for: docs/src/pages/docs/index.mdx

+12-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ This is a list of all the available releases.
6969
>
7070
<div className="flex flex-row items-center gap-2">
7171
<ExternalLinkIcon className="w-6 h-6" />
72-
<Text className="text-lg font-bold">Latest v2.0.3</Text>
72+
<Text className="text-lg font-bold">Latest v2.0.4</Text>
7373
</div>
7474
<Text className="text-sm font-light text-left ml-4">
7575
This is the latest ***stable*** release.
@@ -110,6 +110,17 @@ This is a list of all the available releases.
110110
</div>
111111
<StatusBadge variant="dev">dev</StatusBadge>
112112
</Link>
113+
<Link
114+
target="_blank"
115+
href="/github/v2.0.4"
116+
className="flex flex-row w-full justify-between px-4 py-2 rounded-md items-center text-sm font-light hover:bg-neutral-100/40 dark:hover:bg-neutral-800/20 transition-all"
117+
>
118+
<div className="flex flex-col justify-between">
119+
<h1 className="font-normal text-lg">Release v2.0.4</h1>
120+
<p>7 July 2024</p>
121+
</div>
122+
<StatusBadge variant="stable">stable</StatusBadge>
123+
</Link>
113124
<Link
114125
target="_blank"
115126
href="/github/v2.0.3"

Diff for: docs/src/pages/docs/latest/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import { Cards, Card } from "nextra/components";
1111

1212
This is `thread`, a Python library which extends Python's built-in `threading` library.
1313

14-
## Thread v2.0.3
14+
## Thread v2.0.4
1515

16-
You are viewing the documentation for the `v2.0.3` release.<br />
16+
You are viewing the documentation for the `v2.0.4` release.<br />
1717
This is the most recent stable release of `thread`.
1818

1919
## Quick Start

Diff for: docs/src/pages/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Thread v2.0.3
2+
title: Thread v2.0.4
33
---
44

55
import Link from "next/link";
@@ -71,7 +71,7 @@ export function Feature({
7171
<span className="bg-clip-text text-transparent bg-gradient-to-r from-pink-500 to-violet-500">
7272
<span>Thread</span>
7373
</span>
74-
<span>&nbsp;- v2.0.3</span>
74+
<span>&nbsp;- v2.0.4</span>
7575
</h1>
7676
<div className="text-center">
7777
<PackageManager />

Diff for: docs/theme.config.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const Head = () => {
5050
const { route } = useRouter();
5151

5252
const pageTitle =
53-
route === "/" || !title ? "Thread v2.0.3" : `${title} | Thread v2.0.3`;
53+
route === "/" || !title ? "Thread v2.0.4" : `${title} | Thread v2.0.4`;
5454
const socialImage = "https://thread.ngjx.org/socialcard-white.jpg";
5555

5656
return (
@@ -125,7 +125,7 @@ const config: DocsThemeConfig = {
125125
const { asPath } = useRouter();
126126
if (asPath !== "/") {
127127
return {
128-
titleTemplate: "%s | Thread v2.0.3",
128+
titleTemplate: "%s | Thread v2.0.4",
129129
};
130130
}
131131
},

Diff for: pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "thread"
3-
version = "2.0.3"
3+
version = "2.0.4"
44
description = "Threading module extension"
55
authors = ["Alex <[email protected]>"]
66
license = "BSD-3-Clause"
@@ -30,7 +30,7 @@ classifiers = [
3030

3131
[tool.poetry.urls]
3232
Homepage = "https://thread.ngjx.org"
33-
Documentation = "https://thread.ngjx.org/docs/v2.0.3"
33+
Documentation = "https://thread.ngjx.org/docs/v2.0.4"
3434
Source = "https://github.com/python-thread/thread"
3535
Download = "https://pypi.org/project/thread/#files"
3636
"Release Notes" = "https://github.com/python-thread/thread/releases"

Diff for: src/thread/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
## Thread Library
3-
Documentation at https://thread.ngjx.org/docs/2.0.3
3+
Documentation at https://thread.ngjx.org/docs/2.0.4
44
55
66
---

Diff for: src/thread/thread.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def wrapper(
529529
*args: _Target_P.args,
530530
**kwargs: _Target_P.kwargs,
531531
) -> List[_Target_T]:
532-
computed: List[Data_Out] = []
532+
computed: List[_Target_T] = []
533533

534534
i = 0
535535
for data_entry in data_chunk:
@@ -547,7 +547,7 @@ def wrapper(
547547
return wrapper
548548

549549
@property
550-
def results(self) -> List[_Dataset_T]:
550+
def results(self) -> List[_Target_T]:
551551
"""
552552
The return value of the threads if completed
553553
@@ -560,7 +560,7 @@ def results(self) -> List[_Dataset_T]:
560560
if len(self._threads) == 0:
561561
raise exceptions.ThreadNotInitializedError()
562562

563-
results: List[Data_Out] = []
563+
results: List[_Target_T] = []
564564
for entry in self._threads:
565565
results += entry.thread.result
566566
return results
@@ -577,15 +577,15 @@ def is_alive(self) -> bool:
577577
raise exceptions.ThreadNotInitializedError()
578578
return any(entry.thread.is_alive() for entry in self._threads)
579579

580-
def get_return_values(self) -> List[_Dataset_T]:
580+
def get_return_values(self) -> List[_Target_T]:
581581
"""
582582
Halts the current thread execution until the thread completes
583583
584584
Returns
585585
-------
586586
:returns Any: The return value of the target function
587587
"""
588-
results: List[Data_Out] = []
588+
results: List[_Target_T] = []
589589
for entry in self._threads:
590590
entry.thread.join()
591591
results += entry.thread.result

0 commit comments

Comments
 (0)