Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 5, 2023
1 parent 8a35410 commit 30f9464
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions diracx-client/src/diracx/client/_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def as_dict(
key_transformer: Callable[
[str, Dict[str, Any], Any], Any
] = attribute_transformer,
**kwargs: Any
**kwargs: Any,
) -> JSON:
"""Return a dict that can be serialized using json.dump.
Expand Down Expand Up @@ -2060,7 +2060,7 @@ def deserialize_rfc(attr):
*parsed_date[:6],
tzinfo=_FixedOffset(
datetime.timedelta(minutes=(parsed_date[9] or 0) / 60)
)
),
)
if not date_obj.tzinfo:
date_obj = date_obj.astimezone(tz=TZ_UTC)
Expand Down
26 changes: 13 additions & 13 deletions diracx-client/src/diracx/client/aio/operations/_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ async def authorization_flow(
redirect_uri: str,
scope: str,
state: str,
**kwargs: Any
**kwargs: Any,
) -> Any:
"""Authorization Flow.
Expand Down Expand Up @@ -791,7 +791,7 @@ async def serve_config(
*,
if_none_match: Optional[str] = None,
if_modified_since: Optional[str] = None,
**kwargs: Any
**kwargs: Any,
) -> Any:
"""Serve Config.
Expand Down Expand Up @@ -947,7 +947,7 @@ async def initiate_sandbox_upload(
body: _models.SandboxInfo,
*,
content_type: str = "application/json",
**kwargs: Any
**kwargs: Any,
) -> _models.SandboxUploadResponse:
"""Initiate Sandbox Upload.
Expand Down Expand Up @@ -1410,7 +1410,7 @@ async def set_job_status_bulk(
*,
force: bool = False,
content_type: str = "application/json",
**kwargs: Any
**kwargs: Any,
) -> Dict[str, _models.SetJobStatusReturn]:
"""Set Job Status Bulk.
Expand All @@ -1435,7 +1435,7 @@ async def set_job_status_bulk(
*,
force: bool = False,
content_type: str = "application/json",
**kwargs: Any
**kwargs: Any,
) -> Dict[str, _models.SetJobStatusReturn]:
"""Set Job Status Bulk.
Expand All @@ -1459,7 +1459,7 @@ async def set_job_status_bulk(
body: Union[Dict[str, Dict[str, _models.JobStatusUpdate]], IO],
*,
force: bool = False,
**kwargs: Any
**kwargs: Any,
) -> Dict[str, _models.SetJobStatusReturn]:
"""Set Job Status Bulk.
Expand Down Expand Up @@ -1704,7 +1704,7 @@ async def search(
page: int = 0,
per_page: int = 100,
content_type: str = "application/json",
**kwargs: Any
**kwargs: Any,
) -> List[JSON]:
"""Search.
Expand Down Expand Up @@ -1734,7 +1734,7 @@ async def search(
page: int = 0,
per_page: int = 100,
content_type: str = "application/json",
**kwargs: Any
**kwargs: Any,
) -> List[JSON]:
"""Search.
Expand Down Expand Up @@ -1763,7 +1763,7 @@ async def search(
*,
page: int = 0,
per_page: int = 100,
**kwargs: Any
**kwargs: Any,
) -> List[JSON]:
"""Search.
Expand Down Expand Up @@ -1850,7 +1850,7 @@ async def summary(
body: _models.JobSummaryParams,
*,
content_type: str = "application/json",
**kwargs: Any
**kwargs: Any,
) -> Any:
"""Summary.
Expand Down Expand Up @@ -2242,7 +2242,7 @@ async def set_single_job_status(
*,
force: bool = False,
content_type: str = "application/json",
**kwargs: Any
**kwargs: Any,
) -> Dict[str, _models.SetJobStatusReturn]:
"""Set Single Job Status.
Expand Down Expand Up @@ -2270,7 +2270,7 @@ async def set_single_job_status(
*,
force: bool = False,
content_type: str = "application/json",
**kwargs: Any
**kwargs: Any,
) -> Dict[str, _models.SetJobStatusReturn]:
"""Set Single Job Status.
Expand All @@ -2297,7 +2297,7 @@ async def set_single_job_status(
body: Union[Dict[str, _models.JobStatusUpdate], IO],
*,
force: bool = False,
**kwargs: Any
**kwargs: Any,
) -> Dict[str, _models.SetJobStatusReturn]:
"""Set Single Job Status.
Expand Down
34 changes: 17 additions & 17 deletions diracx-client/src/diracx/client/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(
redirect_uri: Optional[str] = None,
code_verifier: Optional[str] = None,
refresh_token: Optional[str] = None,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword grant_type: OAuth2 Grant type. Required.
Expand Down Expand Up @@ -193,7 +193,7 @@ def __init__(
verification_uri_complete: str,
verification_uri: str,
expires_in: int,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword user_code: User Code. Required.
Expand Down Expand Up @@ -251,7 +251,7 @@ def __init__(
status: str,
minor_status: str,
time_stamp: datetime.datetime,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword job_id: Jobid. Required.
Expand Down Expand Up @@ -297,7 +297,7 @@ def __init__(
search: List["_models.JobSearchParamsSearchItem"] = [],
sort: List["_models.SortSpec"] = [],
distinct: bool = False,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword parameters: Parameters.
Expand Down Expand Up @@ -369,7 +369,7 @@ def __init__(
application_status: str,
status_time: datetime.datetime,
status_source: str,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword status: An enumeration. Required. Known values are: "Submitting", "Received",
Expand Down Expand Up @@ -422,7 +422,7 @@ def __init__(
minor_status: Optional[str] = None,
application_status: Optional[str] = None,
status_source: str = "Unknown",
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword status: An enumeration. Known values are: "Submitting", "Received", "Checking",
Expand Down Expand Up @@ -468,7 +468,7 @@ def __init__(
*,
grouping: List[str],
search: List["_models.JobSummaryParamsSearchItem"] = [],
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword grouping: Grouping. Required.
Expand Down Expand Up @@ -524,7 +524,7 @@ def __init__(
status: Union[str, "_models.JobStatus"],
minor_status: str,
application_status: str,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword status: An enumeration. Required. Known values are: "Submitting", "Received",
Expand Down Expand Up @@ -639,7 +639,7 @@ def __init__(
checksum: str,
size: int,
format: Union[str, "_models.SandboxFormat"],
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword checksum_algorithm: An enumeration. Required. "sha256"
Expand Down Expand Up @@ -687,7 +687,7 @@ def __init__(
pfn: str,
url: Optional[str] = None,
fields: Optional[Dict[str, str]] = None,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword pfn: Pfn. Required.
Expand Down Expand Up @@ -735,7 +735,7 @@ def __init__(
parameter: str,
operator: Union[str, "_models.ScalarSearchOperator"],
value: "_models.ScalarSearchSpecValue",
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword parameter: Parameter. Required.
Expand Down Expand Up @@ -803,7 +803,7 @@ def __init__(
start_exec_time: Optional[datetime.datetime] = None,
end_exec_time: Optional[datetime.datetime] = None,
last_update_time: Optional[datetime.datetime] = None,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword status: An enumeration. Known values are: "Submitting", "Received", "Checking",
Expand Down Expand Up @@ -954,7 +954,7 @@ def __init__(
expires_in: int,
token_type: str = "Bearer",
refresh_token: Optional[str] = None,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword access_token: Access Token. Required.
Expand Down Expand Up @@ -1014,7 +1014,7 @@ def __init__(
dirac_group: str,
properties: List[str],
preferred_username: str,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword sub: Sub. Required.
Expand Down Expand Up @@ -1067,7 +1067,7 @@ def __init__(
loc: List["_models.ValidationErrorLocItem"],
msg: str,
type: str,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword loc: Location. Required.
Expand Down Expand Up @@ -1124,7 +1124,7 @@ def __init__(
parameter: str,
operator: Union[str, "_models.VectorSearchOperator"],
values: "_models.VectorSearchSpecValues",
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword parameter: Parameter. Required.
Expand Down Expand Up @@ -1181,7 +1181,7 @@ def __init__(
groups: Dict[str, "_models.GroupInfo"],
support: "_models.SupportInfo",
default_group: str,
**kwargs: Any
**kwargs: Any,
) -> None:
"""
:keyword groups: Groups. Required.
Expand Down

0 comments on commit 30f9464

Please sign in to comment.