We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0539237 commit c981668Copy full SHA for c981668
src/charm_state.py
@@ -226,13 +226,10 @@ def auth(self) -> GitHubAuth:
226
"""Build the application GitHub auth configuration."""
227
if self.token is not None:
228
return GitHubTokenAuth(token=self.token)
229
- assert self.app_client_id is not None
230
- assert self.installation_id is not None
231
- assert self.private_key is not None
232
return GitHubAppAuth(
233
- app_client_id=self.app_client_id,
234
- installation_id=self.installation_id,
235
- private_key=self.private_key,
+ app_client_id=cast(str, self.app_client_id),
+ installation_id=cast(int, self.installation_id),
+ private_key=cast(str, self.private_key),
236
)
237
238
0 commit comments