From b2ab7b214c333d6b872720c8e6a2bdf88a0f9bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 23 Jul 2024 15:06:19 +0200 Subject: [PATCH] fix: proper typing for last call --- pyvulnerabilitylookup/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyvulnerabilitylookup/api.py b/pyvulnerabilitylookup/api.py index 9ded582..2c59088 100644 --- a/pyvulnerabilitylookup/api.py +++ b/pyvulnerabilitylookup/api.py @@ -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