Skip to content

Commit fcbc60e

Browse files
author
EhteshamSid
committed
fix mypy errors: use Optional for None default arguments
1 parent 1fa1643 commit fcbc60e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samcli/lib/sync/infra_sync_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class InfraSyncResult:
7272
_infra_sync_executed: bool
7373
_code_sync_resources: Set[ResourceIdentifier]
7474

75-
def __init__(self, executed: bool, code_sync_resources: Set[ResourceIdentifier] = None) -> None:
75+
def __init__(self, executed: bool, code_sync_resources: Optional[Set[ResourceIdentifier]] = None) -> None:
7676
"""
7777
Constructor
7878

tests/integration/durable_integ_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def log_output():
142142
def assert_invoke_output(
143143
self,
144144
stdout: str,
145-
input_data: Dict[str, Any] = None,
145+
input_data: Optional[Dict[str, Any]] = None,
146146
execution_name: Optional[str] = None,
147147
expected_status: str = "SUCCEEDED",
148148
) -> str:

0 commit comments

Comments
 (0)