Add frozenset.__iter__, tuple.__iter__ and file.__iter__ (Py2 only) skeletons

This commit is contained in:
Semyon Proshev
2016-09-08 16:50:01 +03:00
parent e79b624ec3
commit 2d88d2cf91
2 changed files with 30 additions and 0 deletions

View File

@@ -2494,6 +2494,12 @@ class frozenset(object):
"""
return False
def __iter__(self):
"""
:rtype: collections.Iterator[T]
"""
pass
class tuple(object):
"""Tuple object."""
@@ -2548,6 +2554,12 @@ class tuple(object):
"""
return 0
def __iter__(self):
"""
:rtype: collections.Iterator[object | unknown]
"""
pass
class dict(object):
"""Dictionary object."""
@@ -2821,6 +2833,12 @@ class file(object):
"""
pass
def __iter__(self):
"""
:rtype: collections.Iterator[bytes]
"""
pass
class __generator(object):
"""A mock class representing the generator function type."""

View File

@@ -2184,6 +2184,12 @@ class frozenset(object):
"""
return False
def __iter__(self):
"""
:rtype: collections.Iterator[T]
"""
pass
class tuple(object):
@@ -2239,6 +2245,12 @@ class tuple(object):
"""
return 0
def __iter__(self):
"""
:rtype: collections.Iterator[object | unknown]
"""
pass
class dict(object):
"""Dictionary object."""