Skip to content

Commit 8b4581f

Browse files
committed
Update type information to fix mypy issues
1 parent f0bb84b commit 8b4581f

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

greenbone/scap/api/cve/api.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ async def cves(
240240
* Filtering by [virtualMatchString](https://nvd.nist.gov/developers/vulnerabilities#cves-virtualMatchString) -
241241
Same as cpeName.
242242
"""
243-
no_rejected: bool = no_rejected is not None
244-
keyword_exact_match: bool = keyword_exact_match is not None
243+
no_rejected: bool = no_rejected is not None # type: ignore[no-redef]
244+
keyword_exact_match: bool = keyword_exact_match is not None # type: ignore[no-redef]
245245
keywords = (
246246
keyword_search.split()
247247
if keyword_search and not keyword_exact_match
@@ -262,7 +262,11 @@ async def cves(
262262
cvss_v3_severity=cvss_v3_severity,
263263
)
264264
cves = await get_cve_items(
265-
manager, **filter_args, cve_id=cve_id, limit=results_per_page, index=start_index # type: ignore[arg-type]
265+
manager,
266+
**filter_args, # type: ignore[arg-type]
267+
cve_id=cve_id,
268+
limit=results_per_page,
269+
index=start_index, # type: ignore[arg-type]
266270
)
267271
return CVEResponse(
268272
results_per_page=1 if cve_id else results_per_page,

0 commit comments

Comments
 (0)