Skip to content

Commit 2fecbb1

Browse files
btwshivamterriko
andauthored
docs: add missing docstrings to data_sources/gad_source.py #3466 (#3488)
fixes #3466 Co-authored-by: Terri Oda <[email protected]>
1 parent edc82e9 commit 2fecbb1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cve_bin_tool/data_sources/gad_source.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424

2525
class GAD_Source(Data_Source):
26+
"""Represents a data source for retrieving Common Vulnerabilities and Exposures (CVEs) from GitLab Advisory Database (GAD)."""
27+
2628
SOURCE = "GAD"
2729
CACHEDIR = DISK_LOCATION_DEFAULT
2830
LOGGER = LOGGER.getChild("CVEDB")
@@ -174,6 +176,9 @@ async def update_cve_entries(self):
174176
self.all_cve_entries.append(data)
175177

176178
def parse_multiple_version(self, range_string):
179+
"""Parses multiple version strings from a range string.
180+
Args:range_string (str): The range string to parse.
181+
Returns:list: A list of parsed version strings."""
177182
version_strings = range_string.split(",")
178183
start = False
179184
versions = []

0 commit comments

Comments
 (0)