Skip to content

Commit 2c8be6c

Browse files
committed
typing
1 parent 05ccc59 commit 2c8be6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/integrations/loguru.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def _loguru_level_to_otel(record_level):
7070
class LoguruIntegration(Integration):
7171
identifier = "loguru"
7272

73-
level = DEFAULT_LEVEL # type: int
74-
event_level = DEFAULT_EVENT_LEVEL # type: int
73+
level = DEFAULT_LEVEL # type: Optional[int]
74+
event_level = DEFAULT_EVENT_LEVEL # type: Optional[int]
7575
breadcrumb_format = DEFAULT_FORMAT
7676
event_format = DEFAULT_FORMAT
7777
sentry_logs_level = DEFAULT_LEVEL # type: Optional[int]
@@ -84,7 +84,7 @@ def __init__(
8484
event_format=DEFAULT_FORMAT,
8585
sentry_logs_level=DEFAULT_LEVEL,
8686
):
87-
# type: (int, int, str | loguru.FormatFunction, str | loguru.FormatFunction, int) -> None
87+
# type: (Optional[int], Optional[int], str | loguru.FormatFunction, str | loguru.FormatFunction, int) -> None
8888
LoguruIntegration.level = level
8989
LoguruIntegration.event_level = event_level
9090
LoguruIntegration.breadcrumb_format = breadcrumb_format

0 commit comments

Comments
 (0)