Add __all__ for modules beginning with 'c' and 'd' (#7303)

This commit is contained in:
Alex Waygood
2022-02-20 01:51:27 +00:00
committed by GitHub
parent ebdbd564be
commit e9db3bd50a
8 changed files with 116 additions and 0 deletions

View File

@@ -4,6 +4,9 @@ from time import struct_time
from typing import ClassVar, NamedTuple, NoReturn, SupportsAbs, TypeVar, overload
from typing_extensions import Literal, final
if sys.version_info >= (3, 9):
__all__ = ("date", "datetime", "time", "timedelta", "timezone", "tzinfo", "MINYEAR", "MAXYEAR")
_D = TypeVar("_D", bound=date)
MINYEAR: Literal[1]