Add more mypy annotations.

This commit is contained in:
Jakob Stoklund Olesen
2017-03-30 15:15:53 -07:00
parent ae12c94d04
commit a82e521291
15 changed files with 101 additions and 32 deletions

View File

@@ -193,6 +193,7 @@ class InstructionFormat(object):
@staticmethod
def extract_names(globs):
# type: (Dict[str, Any]) -> None
"""
Given a dict mapping name -> object as returned by `globals()`, find
all the InstructionFormat objects and set their name from the dict key.