Refine return type of _package_versions() and find_all_candidates().

This commit is contained in:
Chris Jerdonek 2019-04-22 04:17:33 -07:00
parent 5a00ac4130
commit 58ee598b03
1 changed files with 2 additions and 2 deletions

View File

@ -668,7 +668,7 @@ class PackageFinder(object):
return [mkurl_pypi_url(url) for url in self.index_urls]
def find_all_candidates(self, project_name):
# type: (str) -> List[Optional[InstallationCandidate]]
# type: (str) -> List[InstallationCandidate]
"""Find all available InstallationCandidate for project_name
This checks index_urls and find_links.
@ -873,7 +873,7 @@ class PackageFinder(object):
links, # type: Iterable[Link]
search # type: Search
):
# type: (...) -> List[Optional[InstallationCandidate]]
# type: (...) -> List[InstallationCandidate]
result = []
for link in self._sort_links(links):
v = self._link_package_versions(link, search)