Skip to content

Commit cebce93

Browse files
author
Michael Brewer
committed
fix(mypy): no implicit optional
1 parent 3d16528 commit cebce93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

aws_lambda_powertools/tracing/tracer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ def _decorate_async_function(
520520
method: Callable,
521521
capture_response: Optional[Union[bool, str]] = None,
522522
capture_error: Optional[Union[bool, str]] = None,
523-
method_name: str = None,
523+
method_name: Optional[str] = None,
524524
):
525525
@functools.wraps(method)
526526
async def decorate(*args, **kwargs):
@@ -547,7 +547,7 @@ def _decorate_generator_function(
547547
method: Callable,
548548
capture_response: Optional[Union[bool, str]] = None,
549549
capture_error: Optional[Union[bool, str]] = None,
550-
method_name: str = None,
550+
method_name: Optional[str] = None,
551551
):
552552
@functools.wraps(method)
553553
def decorate(*args, **kwargs):

aws_lambda_powertools/utilities/validation/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import logging
22
from typing import Any, Dict, Optional, Union
33

4-
import fastjsonschema
4+
import fastjsonschema # type: ignore
55
import jmespath
6-
from jmespath.exceptions import LexerError
6+
from jmespath.exceptions import LexerError # type: ignore
77

88
from aws_lambda_powertools.shared.jmespath_functions import PowertoolsFunctions
99

0 commit comments

Comments
 (0)