globus / globus-compute

Globus Compute: High Performance Function Serving for Science
https://www.globus.org/compute
Apache License 2.0
148 stars 47 forks source link

Add runtime type checking to Batch class #1691

Closed khk-globus closed 1 month ago

khk-globus commented 1 month ago

Per user-identified typo-able interaction:

args=("abc")   # a str
args=("abc",)  # a tuple

Python syntax "gotcha". So, help users of this interface with a little judicious type checking.

While here, add a unit test of the Batch class, which we seem to have been missing. Doh!

Type of change