fix: proper typing for last call

This commit is contained in:
Raphaël Vinot 2024-07-23 15:06:19 +02:00
parent 01a7381273
commit b2ab7b214c

View file

@ -58,7 +58,7 @@ class PyVulnerabilityLookup():
r = self.session.get(urljoin(self.root_url, 'info'))
return r.json()
def get_last(self, number: int | None=None, source: str | None = None) -> dict[str, Any]:
def get_last(self, number: int | None=None, source: str | None = None) -> list[dict[str, Any]]:
'''Get the last vulnerabilities
:param number: The number of vulnerabilities to get