Module nari.types.event.config

Class that represents configuration value(s)

Expand source code
"""Class that represents configuration value(s)"""
from nari.types import Timestamp
from nari.types.event import Event

class Config(Event): # pylint: disable=too-few-public-methods
    """Represents a version string found in the events"""
    def __init__(self, *,
                 timestamp: Timestamp,
                 values: dict[str, str],
                ):
        super().__init__(timestamp)
        self.values = values

    def __repr__(self):
        return f'<Config {self.values.items()}>'

Classes

class Config (*, timestamp: int, values: dict[str, str])

Represents a version string found in the events

Expand source code
class Config(Event): # pylint: disable=too-few-public-methods
    """Represents a version string found in the events"""
    def __init__(self, *,
                 timestamp: Timestamp,
                 values: dict[str, str],
                ):
        super().__init__(timestamp)
        self.values = values

    def __repr__(self):
        return f'<Config {self.values.items()}>'

Ancestors