(self, attributes: dict[str, Any])
| 2198 | ) |
| 2199 | |
| 2200 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 2201 | if "advanced_security_enabled_for_new_repositories" in attributes: # pragma no branch |
| 2202 | self._advanced_security_enabled_for_new_repositories = self._makeBoolAttribute( |
| 2203 | attributes["advanced_security_enabled_for_new_repositories"] |
| 2204 | ) |
| 2205 | if "archived_at" in attributes: # pragma no branch |
| 2206 | assert attributes["archived_at"] is None or isinstance(attributes["archived_at"], str), attributes[ |
| 2207 | "archived_at" |
| 2208 | ] |
| 2209 | self._archived_at = self._makeDatetimeAttribute(attributes["archived_at"]) |
| 2210 | if "avatar_url" in attributes: # pragma no branch |
| 2211 | self._avatar_url = self._makeStringAttribute(attributes["avatar_url"]) |
| 2212 | if "billing_email" in attributes: # pragma no branch |
| 2213 | self._billing_email = self._makeStringAttribute(attributes["billing_email"]) |
| 2214 | if "blog" in attributes: # pragma no branch |
| 2215 | self._blog = self._makeStringAttribute(attributes["blog"]) |
| 2216 | if "collaborators" in attributes: # pragma no branch |
| 2217 | self._collaborators = self._makeIntAttribute(attributes["collaborators"]) |
| 2218 | if "company" in attributes: # pragma no branch |
| 2219 | self._company = self._makeStringAttribute(attributes["company"]) |
| 2220 | if "created_at" in attributes: # pragma no branch |
| 2221 | self._created_at = self._makeDatetimeAttribute(attributes["created_at"]) |
| 2222 | if "default_repository_branch" in attributes: # pragma no branch |
| 2223 | self._default_repository_branch = self._makeStringAttribute(attributes["default_repository_branch"]) |
| 2224 | if "default_repository_permission" in attributes: # pragma no branch |
| 2225 | self._default_repository_permission = self._makeStringAttribute(attributes["default_repository_permission"]) |
| 2226 | if "dependabot_alerts_enabled_for_new_repositories" in attributes: # pragma no branch |
| 2227 | self._dependabot_alerts_enabled_for_new_repositories = self._makeBoolAttribute( |
| 2228 | attributes["dependabot_alerts_enabled_for_new_repositories"] |
| 2229 | ) |
| 2230 | if "dependabot_security_updates_enabled_for_new_repositories" in attributes: # pragma no branch |
| 2231 | self._dependabot_security_updates_enabled_for_new_repositories = self._makeBoolAttribute( |
| 2232 | attributes["dependabot_security_updates_enabled_for_new_repositories"] |
| 2233 | ) |
| 2234 | if "dependency_graph_enabled_for_new_repositories" in attributes: # pragma no branch |
| 2235 | self._dependency_graph_enabled_for_new_repositories = self._makeBoolAttribute( |
| 2236 | attributes["dependency_graph_enabled_for_new_repositories"] |
| 2237 | ) |
| 2238 | if "deploy_keys_enabled_for_repositories" in attributes: # pragma no branch |
| 2239 | self._deploy_keys_enabled_for_repositories = self._makeBoolAttribute( |
| 2240 | attributes["deploy_keys_enabled_for_repositories"] |
| 2241 | ) |
| 2242 | if "description" in attributes: # pragma no branch |
| 2243 | self._description = self._makeStringAttribute(attributes["description"]) |
| 2244 | if "disk_usage" in attributes: # pragma no branch |
| 2245 | self._disk_usage = self._makeIntAttribute(attributes["disk_usage"]) |
| 2246 | if "display_commenter_full_name_setting_enabled" in attributes: # pragma no branch |
| 2247 | self._display_commenter_full_name_setting_enabled = self._makeBoolAttribute( |
| 2248 | attributes["display_commenter_full_name_setting_enabled"] |
| 2249 | ) |
| 2250 | if "display_login" in attributes: # pragma no branch |
| 2251 | self._display_login = self._makeStringAttribute(attributes["display_login"]) |
| 2252 | if "email" in attributes: # pragma no branch |
| 2253 | self._email = self._makeStringAttribute(attributes["email"]) |
| 2254 | if "events_url" in attributes: # pragma no branch |
| 2255 | self._events_url = self._makeStringAttribute(attributes["events_url"]) |
| 2256 | if "followers" in attributes: # pragma no branch |
| 2257 | self._followers = self._makeIntAttribute(attributes["followers"]) |
no test coverage detected