From a389a2e1b72663759eafe6a2a8b300f38125ab6f Mon Sep 17 00:00:00 2001 From: Thomas Uram Date: Mon, 10 Apr 2023 20:34:39 +0000 Subject: [PATCH] Update to version a22 --- balsam/__init__.py | 2 +- balsam/_api/models.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/balsam/__init__.py b/balsam/__init__.py index 47b27195..b43cf51a 100644 --- a/balsam/__init__.py +++ b/balsam/__init__.py @@ -1,4 +1,4 @@ from balsam.util import config_root_logger -__version__ = "0.7.0.a21" +__version__ = "0.7.0.a22" config_root_logger() diff --git a/balsam/_api/models.py b/balsam/_api/models.py index 0c3fcdaa..3321a5d5 100644 --- a/balsam/_api/models.py +++ b/balsam/_api/models.py @@ -1,5 +1,5 @@ -# This file was auto-generated via /Users/turam/opt/miniconda3/bin/python balsam/schemas/api_generator.py -# [git rev ce4bdce] +# This file was auto-generated via /home/turam/miniconda3/bin/python balsam/schemas/api_generator.py +# [git rev 7634992] # Do *not* make changes to the API by changing this file! import datetime @@ -765,7 +765,7 @@ class BatchJob(balsam._api.bases.BatchJobBase): job_mode = Field[balsam.schemas.batchjob.JobMode]() optional_params = Field[typing.Dict[str, str]]() filter_tags = Field[typing.Dict[str, str]]() - partitions = Field[typing.Optional[typing.List[balsam.schemas.batchjob.BatchJobPartition]]]() + partitions = Field[Optional[typing.Union[typing.List[balsam.schemas.batchjob.BatchJobPartition], None]]]() site_id = Field[int]() project = Field[str]() queue = Field[str]() @@ -786,7 +786,7 @@ def __init__( queue: str, optional_params: Optional[typing.Dict[str, str]] = None, filter_tags: Optional[typing.Dict[str, str]] = None, - partitions: Optional[typing.Optional[typing.List[balsam.schemas.batchjob.BatchJobPartition]]] = None, + partitions: Optional[typing.Union[typing.List[balsam.schemas.batchjob.BatchJobPartition], None]] = None, **kwargs: Any, ) -> None: """ @@ -918,7 +918,7 @@ def create( queue: str, optional_params: Optional[typing.Dict[str, str]] = None, filter_tags: Optional[typing.Dict[str, str]] = None, - partitions: Optional[typing.Optional[typing.List[balsam.schemas.batchjob.BatchJobPartition]]] = None, + partitions: Optional[typing.Union[typing.List[balsam.schemas.batchjob.BatchJobPartition], None]] = None, ) -> BatchJob: """ Create a new BatchJob object and save it to the API in one step.