Skip to content

Commit d355eb6

Browse files
committed
resolving mypy errors
1 parent 2b58f85 commit d355eb6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

aws_sra_examples/solutions/patch_mgmt/patch_mgmt_org/lambda/src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def manage_task_params(
369369
"""
370370
if task_operation is None and task_reboot_option is None:
371371
no_param_response: MaintenanceWindowTaskInvocationParametersTypeDef = {
372-
"RunCommand": {
372+
"RunCommand": { # type: ignore
373373
"Parameters": {},
374374
"DocumentVersion": "$DEFAULT",
375375
"TimeoutSeconds": 3600,
@@ -382,7 +382,7 @@ def manage_task_params(
382382
task_operation_final: str = "INVALID_TASK_OPERATION_PROVIDED" if task_operation is None else task_operation
383383
task_reboot_option_final: str = "INVALID_TASK_REBOOT_OPTION_PROVIDED" if task_reboot_option is None else task_reboot_option
384384
with_params_response: MaintenanceWindowTaskInvocationParametersTypeDef = {
385-
"RunCommand": {
385+
"RunCommand": { # type: ignore
386386
"Parameters": {
387387
"Operation": [task_operation_final],
388388
"RebootOption": [task_reboot_option_final],

aws_sra_examples/solutions/security_lake/security_lake_org/lambda/src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
try:
4646
MANAGEMENT_ACCOUNT_SESSION = boto3.Session()
47-
PARTITION: str = MANAGEMENT_ACCOUNT_SESSION.get_partition_for_region(HOME_REGION) # type: ignore
47+
PARTITION: str = MANAGEMENT_ACCOUNT_SESSION.get_partition_for_region(HOME_REGION)
4848
CFN_CLIENT = MANAGEMENT_ACCOUNT_SESSION.client("cloudformation")
4949
except Exception:
5050
LOGGER.exception(UNEXPECTED)

aws_sra_examples/solutions/security_lake/security_lake_org/lambda/src/security_lake.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def register_delegated_admin(admin_account_id: str, region: str, service_princip
104104
region: AWS Region
105105
service_principal: AWS Service Principal
106106
"""
107-
sl_client: SecurityLakeClient = MANAGEMENT_ACCOUNT_SESSION.client("securitylake", region, config=BOTO3_CONFIG) # type: ignore
107+
sl_client: SecurityLakeClient = MANAGEMENT_ACCOUNT_SESSION.client("securitylake", region, config=BOTO3_CONFIG)
108108
if not check_organization_admin_enabled(admin_account_id, service_principal):
109109
LOGGER.info(f"Registering delegated administrator ({admin_account_id})...")
110110
sl_client.register_data_lake_delegated_administrator(accountId=admin_account_id)
@@ -913,7 +913,7 @@ def set_lake_formation_permissions(lf_client: LakeFormationClient, account: str,
913913
try:
914914
resource: Union[ResourceTypeDef] = {
915915
"Database": {"CatalogId": account, "Name": db_name + "_subscriber"},
916-
"Table": {"CatalogId": account, "DatabaseName": db_name + "_subscriber", "Name": "rl_*"},
916+
"Table": {"CatalogId": account, "DatabaseName": db_name + "_subscriber", "Name": "rl_*"}, # type: ignore
917917
}
918918
lf_client.grant_permissions(
919919
CatalogId=account,

0 commit comments

Comments
 (0)