Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
mypy gods...
Browse files Browse the repository at this point in the history
  • Loading branch information
jakekaplan committed Jul 12, 2023
1 parent 232ae2f commit f83f10a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions prefect_aws/workers/ecs_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ class ECSVariables(BaseVariables):
"field will be slugified to match AWS character requirements."
),
)
launch_type: Optional[
Literal["FARGATE", "EC2", "EXTERNAL", "FARGATE_SPOT"]
launch_type: Optional[Literal["FARGATE", "EC2", "EXTERNAL", "FARGATE_SPOT"]
] = Field(
default=ECS_DEFAULT_LAUNCH_TYPE,
description=(
Expand Down Expand Up @@ -866,7 +865,8 @@ def _register_task_definition(
"""
logger.info("Registering ECS task definition...")
logger.debug(
f"Task definition request {json.dumps(task_definition, indent=2, default=str)}"
"Task definition request"
f"{json.dumps(task_definition, indent=2, default=str)}"
)
response = ecs_client.register_task_definition(**task_definition)
return response["taskDefinition"]["taskDefinitionArn"]
Expand Down Expand Up @@ -1261,7 +1261,8 @@ def _load_vpc_network_config(
)
raise ValueError(
f"Failed to find {vpc_message}. "
"Network configuration cannot be inferred. " + help_message
"Network configuration cannot be inferred. "
+ help_message
)

vpc_id = vpcs[0]["VpcId"]
Expand Down

0 comments on commit f83f10a

Please sign in to comment.