Get rid of 'Undefined'

This commit is contained in:
Matthias Kramm
2015-09-15 08:06:30 -07:00
parent 7feb677d6b
commit edd35eaf2e
38 changed files with 134 additions and 134 deletions

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def bisect(a, x, *args, **kwargs) -> int: ...

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def ascii_decode(a, *args, **kwargs) -> tuple: ...

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
class defaultdict(object):
def __copy__() -> object: ...

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def reduce(*args, **kwargs) -> object:
raise TypeError()

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def heapify(*args, **kwargs) -> None:
raise TypeError()

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def coverage(a: str) -> object: ...

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def encode_basestring_ascii(*args, **kwargs) -> str:
raise TypeError()

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
class Random(object):
def getrandbits(a: int) -> object:

View File

@@ -3,12 +3,12 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
CODESIZE = Undefined(int)
MAGIC = Undefined(int)
MAXREPEAT = Undefined(long)
copyright = Undefined(str)
CODESIZE = ... # type: int
MAGIC = ... # type: int
MAXREPEAT = ... # type: long
copyright = ... # type: str
def compile(a, b: int, c, *args, **kwargs) -> SRE_Pattern:
raise OverflowError()

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def _clearcache() -> None: ...

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
class array(object):
def __copy__() -> object: ...

View File

@@ -3,11 +3,11 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
InputType = Undefined(StringI)
OutputType = Undefined(StringO)
cStringIO_CAPI = Undefined(object)
InputType = ... # type: StringI
OutputType = ... # type: StringO
cStringIO_CAPI = ... # type: object
def StringIO(*args, **kwargs) -> object: ...

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def acos(*args, **kwargs) -> complex: ...

View File

@@ -3,11 +3,11 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
max = Undefined(object)
min = Undefined(object)
resolution = Undefined(object)
max = ... # type: object
min = ... # type: object
resolution = ... # type: object
class date(object):
def __format__(a) -> unicode:

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def collect(*args, **kwargs) -> int:
raise ValueError()

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def acos(*args, **kwargs) -> float: ...

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def __abs__(*args, **kwargs) -> object: ...

View File

@@ -3,50 +3,50 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
ITIMER_PROF = Undefined(long)
ITIMER_REAL = Undefined(long)
ITIMER_VIRTUAL = Undefined(long)
ItimerError = Undefined(object)
NSIG = Undefined(int)
SIGABRT = Undefined(int)
SIGALRM = Undefined(int)
SIGBUS = Undefined(int)
SIGCHLD = Undefined(int)
SIGCLD = Undefined(int)
SIGCONT = Undefined(int)
SIGFPE = Undefined(int)
SIGHUP = Undefined(int)
SIGILL = Undefined(int)
SIGINT = Undefined(int)
SIGIO = Undefined(int)
SIGIOT = Undefined(int)
SIGKILL = Undefined(int)
SIGPIPE = Undefined(int)
SIGPOLL = Undefined(int)
SIGPROF = Undefined(int)
SIGPWR = Undefined(int)
SIGQUIT = Undefined(int)
SIGRTMAX = Undefined(int)
SIGRTMIN = Undefined(int)
SIGSEGV = Undefined(int)
SIGSTOP = Undefined(int)
SIGSYS = Undefined(int)
SIGTERM = Undefined(int)
SIGTRAP = Undefined(int)
SIGTSTP = Undefined(int)
SIGTTIN = Undefined(int)
SIGTTOU = Undefined(int)
SIGURG = Undefined(int)
SIGUSR1 = Undefined(int)
SIGUSR2 = Undefined(int)
SIGVTALRM = Undefined(int)
SIGWINCH = Undefined(int)
SIGXCPU = Undefined(int)
SIGXFSZ = Undefined(int)
SIG_DFL = Undefined(long)
SIG_IGN = Undefined(long)
ITIMER_PROF = ... # type: long
ITIMER_REAL = ... # type: long
ITIMER_VIRTUAL = ... # type: long
ItimerError = ... # type: object
NSIG = ... # type: int
SIGABRT = ... # type: int
SIGALRM = ... # type: int
SIGBUS = ... # type: int
SIGCHLD = ... # type: int
SIGCLD = ... # type: int
SIGCONT = ... # type: int
SIGFPE = ... # type: int
SIGHUP = ... # type: int
SIGILL = ... # type: int
SIGINT = ... # type: int
SIGIO = ... # type: int
SIGIOT = ... # type: int
SIGKILL = ... # type: int
SIGPIPE = ... # type: int
SIGPOLL = ... # type: int
SIGPROF = ... # type: int
SIGPWR = ... # type: int
SIGQUIT = ... # type: int
SIGRTMAX = ... # type: int
SIGRTMIN = ... # type: int
SIGSEGV = ... # type: int
SIGSTOP = ... # type: int
SIGSYS = ... # type: int
SIGTERM = ... # type: int
SIGTRAP = ... # type: int
SIGTSTP = ... # type: int
SIGTTIN = ... # type: int
SIGTTOU = ... # type: int
SIGURG = ... # type: int
SIGUSR1 = ... # type: int
SIGUSR2 = ... # type: int
SIGVTALRM = ... # type: int
SIGWINCH = ... # type: int
SIGXCPU = ... # type: int
SIGXFSZ = ... # type: int
SIG_DFL = ... # type: long
SIG_IGN = ... # type: long
def alarm(a: int) -> int: ...

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def atof(a: str) -> float:
raise DeprecationWarning()

View File

@@ -3,10 +3,10 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
LockType = Undefined(lock)
error = Undefined(object)
LockType = ... # type: lock
error = ... # type: object
def _count() -> int: ...

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def asctime(*args, **kwargs) -> str:
raise ValueError()

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def bench(a, b: str, *args, **kwargs) -> float: ...

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
class zipimporter(object):
def find_module(a: str, *args, **kwargs) -> None: ...

View File

@@ -3,7 +3,7 @@
# for a more precise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
from typing import List, Tuple, Dict, Undefined, GenericType
from typing import List, Tuple, Dict, GenericType
def adler32(a, *args, **kwargs) -> int: ...