(self, attributes: dict[str, Any])
| 118 | return self._withdrawn_at.value |
| 119 | |
| 120 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 121 | if "cve_id" in attributes: # pragma no branch |
| 122 | self._cve_id = self._makeStringAttribute(attributes["cve_id"]) |
| 123 | if "cvss" in attributes: # pragma no branch |
| 124 | self._cvss = self._makeClassAttribute(CVSS, attributes["cvss"]) |
| 125 | if "cvss_severities" in attributes: # pragma no branch |
| 126 | self._cvss_severities = self._makeDictAttribute(attributes["cvss_severities"]) |
| 127 | if "cwes" in attributes: # pragma no branch |
| 128 | self._cwes = self._makeListOfClassesAttribute(CWE, attributes["cwes"]) |
| 129 | if "description" in attributes: # pragma no branch |
| 130 | self._description = self._makeStringAttribute(attributes["description"]) |
| 131 | if "ghsa_id" in attributes: # pragma no branch |
| 132 | self._ghsa_id = self._makeStringAttribute(attributes["ghsa_id"]) |
| 133 | if "html_url" in attributes: # pragma no branch |
| 134 | self._html_url = self._makeStringAttribute(attributes["html_url"]) |
| 135 | if "identifiers" in attributes: # pragma no branch |
| 136 | self._identifiers = self._makeListOfDictsAttribute(attributes["identifiers"]) |
| 137 | if "published_at" in attributes: # pragma no branch |
| 138 | assert attributes["published_at"] is None or isinstance(attributes["published_at"], str), attributes[ |
| 139 | "published_at" |
| 140 | ] |
| 141 | self._published_at = self._makeDatetimeAttribute(attributes["published_at"]) |
| 142 | if "severity" in attributes: # pragma no branch |
| 143 | self._severity = self._makeStringAttribute(attributes["severity"]) |
| 144 | if "summary" in attributes: # pragma no branch |
| 145 | self._summary = self._makeStringAttribute(attributes["summary"]) |
| 146 | if "updated_at" in attributes: # pragma no branch |
| 147 | assert attributes["updated_at"] is None or isinstance(attributes["updated_at"], str), attributes[ |
| 148 | "updated_at" |
| 149 | ] |
| 150 | self._updated_at = self._makeDatetimeAttribute(attributes["updated_at"]) |
| 151 | if "url" in attributes: # pragma no branch |
| 152 | self._url = self._makeStringAttribute(attributes["url"]) |
| 153 | if "withdrawn_at" in attributes: # pragma no branch |
| 154 | assert attributes["withdrawn_at"] is None or isinstance(attributes["withdrawn_at"], str), attributes[ |
| 155 | "withdrawn_at" |
| 156 | ] |
| 157 | self._withdrawn_at = self._makeDatetimeAttribute(attributes["withdrawn_at"]) |
nothing calls this directly
no test coverage detected