Skip to content

Commit 83ebd7c

Browse files
committed
add slots
1 parent 2430032 commit 83ebd7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pyper/_core/task.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
class Task:
99
"""The representation of a function within a Pipeline."""
10+
11+
__slots__ = "is_gen", "is_async", "func", "join", "concurrency", "throttle", "daemon"
12+
1013
def __init__(
1114
self,
1215
func: Callable,

0 commit comments

Comments
 (0)