File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ def __contains__(self, key: str) -> bool:
41
41
"""check if the given key exists in this job"""
42
42
return key in dir (self )
43
43
44
- def __eq__ (self , other : "Job" ) -> bool :
44
+ def __eq__ (self , other : object ) -> bool :
45
45
"""check if this Job is equal to another"""
46
- return self ._handle == other ._handle
46
+ return isinstance ( other , Job ) and self ._handle == other ._handle
47
47
48
48
def __str__ (self ) -> str :
49
49
"""return a human-friendly object representation"""
@@ -165,7 +165,7 @@ def send_batch(
165
165
raw_jobs : List [Union [Dict , str ]],
166
166
delay_seconds : int = 0 ,
167
167
auto_metadata : bool = True ,
168
- ) -> List [ Dict ] :
168
+ ) -> Dict :
169
169
"""
170
170
send a batch of jobs to the queue, chunked into 10s
171
171
@@ -174,8 +174,8 @@ def send_batch(
174
174
a list of dicts to json.dumps into message bodies
175
175
"""
176
176
jobs = raw_jobs
177
- successful = []
178
- failed = []
177
+ successful = [] # type: List
178
+ failed = [] # type: List
179
179
180
180
# if default, treat each list item as just the message body
181
181
if auto_metadata :
Original file line number Diff line number Diff line change 13
13
14
14
setup (
15
15
name = "qoo" ,
16
- version = "0.0.3 " ,
16
+ version = "0.0.4 " ,
17
17
description = ("A simple library for interacting with Amazon SQS." ),
18
18
long_description = LONG_DESCRIPTION ,
19
19
author = "Jacobi Petrucciani" ,
You can’t perform that action at this time.
0 commit comments