mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Add Python 3 modules, and more Python 2 modules.
Also, sort names alphabetically and add module docstrings.
This commit is contained in:
18
python2/_random.py
Normal file
18
python2/_random.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Stub file for the '_random' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more percise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
class Random(object):
|
||||
def getrandbits(a: int) -> object:
|
||||
raise ValueError()
|
||||
raise MemoryError()
|
||||
def getstate() -> tuple: pass
|
||||
def jumpahead(*args, **kwargs) -> NoneType:
|
||||
raise TypeError()
|
||||
def random() -> float: pass
|
||||
def seed(*args, **kwargs) -> NoneType:
|
||||
raise MemoryError()
|
||||
def setstate(*args, **kwargs) -> NoneType:
|
||||
raise TypeError()
|
||||
raise ValueError()
|
||||
Reference in New Issue
Block a user