Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/traitlets/__init__.py: 86%
14 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-20 06:09 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-20 06:09 +0000
1"""Traitlets Python configuration system"""
2from __future__ import annotations
4import typing as _t
6from . import traitlets
7from ._version import __version__, version_info
8from .traitlets import *
9from .utils.bunch import Bunch
10from .utils.decorators import signature_has_traits
11from .utils.importstring import import_item
12from .utils.warnings import warn
14__all__ = [
15 "traitlets",
16 "__version__",
17 "version_info",
18 "Bunch",
19 "signature_has_traits",
20 "import_item",
21 "Sentinel",
22]
25class Sentinel(traitlets.Sentinel): # type:ignore[name-defined, misc]
26 def __init__(self, *args: _t.Any, **kwargs: _t.Any) -> None:
27 super().__init__(*args, **kwargs)
28 warn(
29 """
30 Sentinel is not a public part of the traitlets API.
31 It was published by mistake, and may be removed in the future.
32 """,
33 DeprecationWarning,
34 stacklevel=2,
35 )