manifest: type annotate public functions

Now that the internal callers are using the right types,
annotate the validate() and manifest_path() arguments.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2020-06-05 17:54:25 -07:00 committed by Marti Bolivar
parent 84b810c7ff
commit 951317b4ae
1 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ def _and_filters(filter_fn1: ImapFilterFnType,
# Public functions
#
def manifest_path():
def manifest_path() -> str:
'''Absolute path of the manifest file in the current workspace.
Exceptions raised:
@ -313,7 +313,7 @@ def manifest_path():
raise OSError(errno.ENOENT, os.strerror(errno.ENOENT), ret)
return ret
def validate(data):
def validate(data: Any) -> None:
'''Validate manifest data
Returns if the manifest data is valid and can be loaded by this