Change "NoneType" to "None". Add missing imports.

This commit is contained in:
Matthias Kramm
2015-03-25 09:03:14 -07:00
parent c2c162a723
commit fd1e46590f
38 changed files with 207 additions and 131 deletions

View File

@@ -3,6 +3,8 @@
# for a more percise 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
CODESIZE = Undefined(int)
MAGIC = Undefined(int)
MAXREPEAT = Undefined(long)
@@ -42,7 +44,7 @@ class SRE_Pattern(object):
def match(pattern, *args, **kwargs) -> object: pass
def scanner(a, *args, **kwargs) -> SRE_Scanner: pass
def search(pattern, *args, **kwargs) -> object: pass
def split(source, *args, **kwargs) -> List[NoneType]: pass
def split(source, *args, **kwargs) -> List[None]: pass
def sub(repl, string, *args, **kwargs) -> tuple: pass
def subn(repl, string, *args, **kwargs) -> tuple: pass