Skip to content

Commit 8b30fe5

Browse files
Adding more logic
1 parent e97d065 commit 8b30fe5

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

aws_lambda_powertools/logging/buffer/config.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
from __future__ import annotations
22

3-
from typing import TYPE_CHECKING
4-
5-
if TYPE_CHECKING:
6-
from aws_lambda_powertools.logging.types import LOG_LEVEL_BUFFER_VALUES
3+
from typing import Literal
74

85

96
class LoggerBufferConfig:
@@ -13,6 +10,7 @@ class LoggerBufferConfig:
1310

1411
# Define class-level constant for valid log levels
1512
VALID_LOG_LEVELS: list[str] = ["DEBUG", "INFO", "WARNING"]
13+
LOG_LEVEL_BUFFER_VALUES = Literal["DEBUG", "INFO", "WARNING"]
1614

1715
def __init__(
1816
self,

aws_lambda_powertools/logging/types.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
from __future__ import annotations
22

3-
from typing import TYPE_CHECKING, Any, Dict, Literal, TypedDict, Union
3+
from typing import TYPE_CHECKING, Any, Dict, TypedDict, Union
44

55
if TYPE_CHECKING:
66
from typing_extensions import NotRequired, TypeAlias
77

8-
LOG_LEVEL_BUFFER_VALUES = Literal["DEBUG", "INFO", "WARNING"]
9-
108

119
class PowertoolsLogRecord(TypedDict):
1210
# Base fields (required)

0 commit comments

Comments
 (0)