Skip to content

Commit

Permalink
fix: proper typing for last call
Browse files Browse the repository at this point in the history
Rafiot committed Jul 23, 2024
1 parent 01a7381 commit b2ab7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvulnerabilitylookup/api.py
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ def get_info(self) -> dict[str, Any]:
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

0 comments on commit b2ab7b2

Please sign in to comment.