Skip to content

Commit

Permalink
Change type hint log level from str to literal
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkuzmik committed Jan 15, 2025
1 parent 50f0e7b commit 136a062
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from typing import Literal
from ..types import Event, Hint
from . import event_filter


class FilterByCount(event_filter.EventFilter):
def __init__(self, max_count: int, level: str):
def __init__(self, max_count: int, level: Literal["error", "warning", "info"]):
super().__init__()
self._count = 0
self._level = level
Expand Down

0 comments on commit 136a062

Please sign in to comment.