3 # Copyright (C) 2022 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 # SPDX-License-Identifier: GPL-2.0-only
7 from typing
import Callable
, Optional
11 def __init__(self
, log
):
12 # type: (Optional[Callable[[str], None]]) -> None
13 self
._logging
_function
= log
# type: Optional[Callable[[str], None]]
17 if self
._logging
_function
:
18 self
._logging
_function
(msg
)
22 # type: () -> Optional[Callable[[str], None]]
23 return self
._logging
_function
This page took 0.028777 seconds and 4 git commands to generate.