Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove superfluous class module
  • Loading branch information
pkch committed Apr 2, 2017
commit 7c739df0156d4333feb1cbc38021b972c1109769
2 changes: 1 addition & 1 deletion mypy/semanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -3359,7 +3359,7 @@ def visit_file(self, file: MypyFile, fnam: str, mod_id: str, options: Options) -
all objects found in the stub. This is to provide correct output from
reveal_type for definitions placed in the "wrong" module for circular
import reasons (e.g., the definition of ModuleType in
_importlib_modulespec.pyi instead of type.pyi).
_importlib_modulespec.pyi instead of types.pyi).

"""
sem = self.sem
Expand Down
1 change: 0 additions & 1 deletion test-data/unit/fixtures/args.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ class int:
class str: pass
class bool: pass
class function: pass
class module: pass
1 change: 0 additions & 1 deletion test-data/unit/fixtures/module_all_python2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ _T = TypeVar('_T')

class object:
def __init__(self) -> None: pass
class module: pass
class type: pass
class function: pass
class int: pass
Expand Down
2 changes: 0 additions & 2 deletions test-data/unit/fixtures/ops.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,3 @@ class float: pass
class BaseException: pass

def __print(a1=None, a2=None, a3=None, a4=None): pass

class module: pass