Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/dateutil/__init__.py: 77%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import sys
3try:
4 from ._version import version as __version__
5except ImportError:
6 __version__ = 'unknown'
8__all__ = ["easter", "parser", "relativedelta", "rrule", "tz", "utils"]
11def __getattr__(name):
12 import importlib
14 if name in __all__ or name == "zoneinfo":
15 return importlib.import_module("." + name, __name__)
16 raise AttributeError(
17 "module {!r} has no attribute {!r}".format(__name__, name)
18 )
21def __dir__():
22 # __dir__ should include all the lazy-importable modules as well.
23 return (
24 [x for x in globals() if x not in sys.modules] + __all__ + ["zoneinfo"]
25 )