Skip to content

Commit 12a31ce

Browse files
author
Guido van Rossum
committed
Add annotations (review feedback).
1 parent 8c5b7b9 commit 12a31ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ def __init__(self,
10181018
# Parse the file (and then some) to get the dependencies.
10191019
self.parse_file()
10201020

1021-
def skipping_ancestor(self, id, path, ancestor_for):
1021+
def skipping_ancestor(self, id: str, path: str, ancestor_for: 'State') -> None:
10221022
# TODO: Read the path (the __init__.py file) and return
10231023
# immediately if it's empty or only contains comments.
10241024
# But beware, some package may be the ancestor of many modules,
@@ -1033,7 +1033,7 @@ def skipping_ancestor(self, id, path, ancestor_for):
10331033
manager.errors.report(-1, "(This note brought to you by --almost-silent)",
10341034
severity='note', only_once=True)
10351035

1036-
def skipping_module(self, id, path):
1036+
def skipping_module(self, id: str, path: str) -> None:
10371037
assert self.caller_state, (id, path)
10381038
manager = self.manager
10391039
save_import_context = manager.errors.import_context()

0 commit comments

Comments
 (0)