Skip to content

Commit

Permalink
chore(linter): Fix linter messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinandjarisch committed Feb 4, 2025
1 parent 87395ce commit ebb8519
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gallia/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import atexit
import dataclasses
import datetime
Expand Down Expand Up @@ -147,7 +149,7 @@ class PenlogPriority(IntEnum):
TRACE = 8

@classmethod
def from_str(cls, string: str) -> "PenlogPriority":
def from_str(cls, string: str) -> PenlogPriority:
"""Converts a string to an instance of PenlogPriority.
``string`` can be a numeric value (0 to 8 inclusive)
or a string with a case insensitive name of the level
Expand Down Expand Up @@ -179,7 +181,7 @@ def from_str(cls, string: str) -> "PenlogPriority":
raise ValueError(f"{string} not a valid priority")

@classmethod
def from_level(cls, value: int) -> "PenlogPriority":
def from_level(cls, value: int) -> PenlogPriority:
"""Converts an int value (e.g. from python's logging module)
to an instance of this class.
"""
Expand Down

0 comments on commit ebb8519

Please sign in to comment.