Remove a few files from the pytype blacklist. (#1628)

Fixes the following issues:

* Literals rather than ... for default values
* None rather than ... for default value of typed variable
* Literals rather than ... # type for top level constants
* # Foo rather than # type: Foo
* return value of init not set to None
This commit is contained in:
Martin DeMello
2017-09-27 07:57:13 -07:00
committed by Matthias Kramm
parent d14272a14f
commit d389ef3d85
8 changed files with 29 additions and 58 deletions

View File

@@ -57,12 +57,12 @@ class Misc:
def tk_bisque(self): ...
def tk_setPalette(self, *args, **kw): ...
def tk_menuBar(self, *args): ...
def wait_variable(self, name=''): ...
def wait_variable(self, name: str = ...): ...
waitvar = ... # type: Any
def wait_window(self, window=None): ...
def wait_visibility(self, window=None): ...
def setvar(self, name='', value=''): ...
def getvar(self, name=''): ...
def setvar(self, name: str = ..., value: str = ...): ...
def getvar(self, name: str = ...): ...
def getint(self, s): ...
def getdouble(self, s): ...
def getboolean(self, s): ...
@@ -278,14 +278,14 @@ class Tk(Misc, Wm):
master = ... # type: Any
children = ... # type: Any
tk = ... # type: Any
def __init__(self, screenName=None, baseName=None, className='', useTk=1, sync=0, use=None): ...
def __init__(self, screenName=None, baseName=None, className: str = ..., useTk=1, sync=0, use=None) -> None: ...
def loadtk(self): ...
def destroy(self): ...
def readprofile(self, baseName, className): ...
def report_callback_exception(self, exc, val, tb): ...
def __getattr__(self, attr): ...
def Tcl(screenName=None, baseName=None, className='', useTk=0): ...
def Tcl(screenName=None, baseName=None, className: str = ..., useTk=0): ...
class Pack:
def pack_configure(self, cnf=..., **kw): ...
@@ -461,7 +461,7 @@ class Listbox(Widget, XView, YView):
class Menu(Widget):
def __init__(self, master=None, cnf=..., **kw): ...
def tk_popup(self, x, y, entry=''): ...
def tk_popup(self, x, y, entry: str = ...): ...
def tk_bindForTraversal(self): ...
def activate(self, index): ...
def add(self, itemType, cnf=..., **kw): ...
@@ -603,8 +603,8 @@ class PhotoImage(Image):
def cget(self, option): ...
def __getitem__(self, key): ...
def copy(self): ...
def zoom(self, x, y=''): ...
def subsample(self, x, y=''): ...
def zoom(self, x, y: str = ...): ...
def subsample(self, x, y: str = ...): ...
def get(self, x, y): ...
def put(self, data, to=None): ...
def write(self, filename, format=None, from_coords=None): ...