(self, attributes: dict[str, Any])
| 143 | return self._type.value |
| 144 | |
| 145 | def _useAttributes(self, attributes: dict[str, Any]) -> None: |
| 146 | self._created = datetime.now(timezone.utc) |
| 147 | if "access_token" in attributes: # pragma no branch |
| 148 | self._token = self._makeStringAttribute(attributes["access_token"]) |
| 149 | if "expires_in" in attributes: # pragma no branch |
| 150 | self._expires_in = self._makeIntAttribute(attributes["expires_in"]) |
| 151 | if "refresh_token" in attributes: # pragma no branch |
| 152 | self._refresh_token = self._makeStringAttribute(attributes["refresh_token"]) |
| 153 | if "refresh_token_expires_in" in attributes: # pragma no branch |
| 154 | self._refresh_expires_in = self._makeIntAttribute(attributes["refresh_token_expires_in"]) |
| 155 | if "scope" in attributes: # pragma no branch |
| 156 | self._scope = self._makeStringAttribute(attributes["scope"]) |
| 157 | if "token_type" in attributes: # pragma no branch |
| 158 | self._type = self._makeStringAttribute(attributes["token_type"]) |
nothing calls this directly
no test coverage detected