Union[unicode, None] → unicode

This commit is contained in:
Lilian Besson 2017-03-10 22:56:36 +01:00 committed by GitHub
parent c7c4f8f0f4
commit 2a4a6d0cda

View File

@ -281,7 +281,7 @@ def get_module_source(modname):
def get_full_modname(modname, attribute):
# type: (str, unicode) -> Union[unicode, NoneType]
# type: (str, unicode) -> unicode
if modname is None:
# Prevents a TypeError: if the last getattr() call will return None
# then it's better to return it directly