Skip to content

Commit

Permalink
pylint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
libretto committed Jun 14, 2024
1 parent 33e4155 commit b2d4eaa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions karapace/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from karapace.config import Config
from karapace.prometheus import PrometheusClient
from karapace.statsd import StatsdClient
from typing import Optional

import threading

Expand All @@ -37,7 +36,7 @@ class Metrics(metaclass=Singleton):
def __init__(
self,
) -> None:
self.stats_client: Optional[StatsClient] = None
self.stats_client: StatsClient | None = None
self.is_ready = False
self.lock = threading.Lock()
self.request_size_total = 0
Expand Down

0 comments on commit b2d4eaa

Please sign in to comment.