Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

278cf4f2-be87-4f9b-bf3e-eb19c62a5eb6 902 B
Raw

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  1. """Traitlets Python configuration system"""
  2. import typing as _t
  3. from . import traitlets
  4. from ._version import __version__, version_info
  5. from .traitlets import *
  6. from .utils.bunch import Bunch
  7. from .utils.decorators import signature_has_traits
  8. from .utils.importstring import import_item
  9. from .utils.warnings import warn
  10. __all__ = [
  11. "traitlets",
  12. "__version__",
  13. "version_info",
  14. "Bunch",
  15. "signature_has_traits",
  16. "import_item",
  17. "Sentinel",
  18. ]
  19. class Sentinel(traitlets.Sentinel): # type:ignore[name-defined, misc]
  20. def __init__(self, *args: _t.Any, **kwargs: _t.Any) -> None:
  21. super().__init__(*args, **kwargs)
  22. warn(
  23. """
  24. Sentinel is not a public part of the traitlets API.
  25. It was published by mistake, and may be removed in the future.
  26. """,
  27. DeprecationWarning,
  28. stacklevel=2,
  29. )
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...