mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Simplify __all__ for modules beginning with 'm' to 't' (#8028)
This commit is contained in:
@@ -5,61 +5,35 @@ from collections.abc import Callable, Iterable, MutableSequence, Sequence, Set a
|
||||
from fractions import Fraction
|
||||
from typing import Any, ClassVar, NoReturn, TypeVar
|
||||
|
||||
__all__ = [
|
||||
"Random",
|
||||
"seed",
|
||||
"random",
|
||||
"uniform",
|
||||
"randint",
|
||||
"choice",
|
||||
"sample",
|
||||
"randrange",
|
||||
"shuffle",
|
||||
"normalvariate",
|
||||
"lognormvariate",
|
||||
"expovariate",
|
||||
"vonmisesvariate",
|
||||
"gammavariate",
|
||||
"triangular",
|
||||
"gauss",
|
||||
"betavariate",
|
||||
"paretovariate",
|
||||
"weibullvariate",
|
||||
"getstate",
|
||||
"setstate",
|
||||
"getrandbits",
|
||||
"choices",
|
||||
"SystemRandom",
|
||||
]
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
__all__ = [
|
||||
"Random",
|
||||
"SystemRandom",
|
||||
"betavariate",
|
||||
"choice",
|
||||
"choices",
|
||||
"expovariate",
|
||||
"gammavariate",
|
||||
"gauss",
|
||||
"getrandbits",
|
||||
"getstate",
|
||||
"lognormvariate",
|
||||
"normalvariate",
|
||||
"paretovariate",
|
||||
"randbytes",
|
||||
"randint",
|
||||
"random",
|
||||
"randrange",
|
||||
"sample",
|
||||
"seed",
|
||||
"setstate",
|
||||
"shuffle",
|
||||
"triangular",
|
||||
"uniform",
|
||||
"vonmisesvariate",
|
||||
"weibullvariate",
|
||||
]
|
||||
else:
|
||||
__all__ = [
|
||||
"Random",
|
||||
"seed",
|
||||
"random",
|
||||
"uniform",
|
||||
"randint",
|
||||
"choice",
|
||||
"sample",
|
||||
"randrange",
|
||||
"shuffle",
|
||||
"normalvariate",
|
||||
"lognormvariate",
|
||||
"expovariate",
|
||||
"vonmisesvariate",
|
||||
"gammavariate",
|
||||
"triangular",
|
||||
"gauss",
|
||||
"betavariate",
|
||||
"paretovariate",
|
||||
"weibullvariate",
|
||||
"getstate",
|
||||
"setstate",
|
||||
"getrandbits",
|
||||
"choices",
|
||||
"SystemRandom",
|
||||
]
|
||||
__all__ += ["randbytes"]
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user