diff --git a/requirements/dev.txt b/requirements/dev.txt index e449c5e919..9c4ec1d816 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -8,7 +8,7 @@ pytest-cov==5.0.0 # type checking and related stubs # mypy adds new rules in new minor versions, which could cause our PR check to fail # here we fix its version and upgrade it manually in the future -mypy==1.11.2 +mypy==1.13.0 types-pywin32==308.0.0.20241029 types-PyYAML==6.0.12.20240917 types-chevron==0.14.2.20240310 diff --git a/samcli/hook_packages/terraform/hooks/prepare/resource_linking.py b/samcli/hook_packages/terraform/hooks/prepare/resource_linking.py index 7b1e339644..d5ca491af2 100644 --- a/samcli/hook_packages/terraform/hooks/prepare/resource_linking.py +++ b/samcli/hook_packages/terraform/hooks/prepare/resource_linking.py @@ -357,7 +357,7 @@ def _link_using_linking_fields(self, cfn_resource: Dict) -> None: child_resources_linking_attributes_logical_id_mapping, ) - dest_resources = [ + dest_resources: List[ReferenceType] = [ ( LogicalIdReference( value=child_resources_linking_attributes_logical_id_mapping[value][0], diff --git a/samcli/lib/build/workflow_config.py b/samcli/lib/build/workflow_config.py index 4725aece49..1fe489c38b 100644 --- a/samcli/lib/build/workflow_config.py +++ b/samcli/lib/build/workflow_config.py @@ -240,7 +240,7 @@ def get_workflow_config( ) from ex -def supports_specified_workflow(specified_workflow: str) -> bool: +def supports_specified_workflow(specified_workflow: Optional[str]) -> bool: """ Given a specified workflow, returns whether it is supported in container builds, can be used to overwrite runtime and get docker image or not diff --git a/samcli/lib/sync/flows/layer_sync_flow.py b/samcli/lib/sync/flows/layer_sync_flow.py index a8e60f0c09..5d094b1db5 100644 --- a/samcli/lib/sync/flows/layer_sync_flow.py +++ b/samcli/lib/sync/flows/layer_sync_flow.py @@ -409,8 +409,8 @@ def sync(self) -> None: return # Check function uses layer - old_layer_arn = [layer_arn for layer_arn in layer_arns if layer_arn.startswith(self._layer_arn)] - old_layer_arn = old_layer_arn[0] if len(old_layer_arn) == 1 else None + old_layer_arns = [layer_arn for layer_arn in layer_arns if layer_arn.startswith(self._layer_arn)] + old_layer_arn = old_layer_arns[0] if len(old_layer_arns) == 1 else None if not old_layer_arn: LOG.warning( "%sLambda Function (%s) does not have layer (%s).%s",