mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Union[unicode, None] → unicode
This commit is contained in:
parent
c7c4f8f0f4
commit
2a4a6d0cda
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user