Skip to content

Commit

Permalink
Replace assertion with cast statement
Browse files Browse the repository at this point in the history
  • Loading branch information
priitlatt committed Aug 23, 2023
1 parent 144fca3 commit a3a9a72
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/codemagic/tools/app_store_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,11 @@ def list_certificates(
self.logger.info(f"- {certificate.get_display_info()}")

if save:
assert private_key is not None # Make mypy happy
self._save_certificates(certificates, private_key, p12_container_password)
self._save_certificates(
certificates,
cast(PrivateKey, private_key),
p12_container_password,
)

return certificates

Expand Down

0 comments on commit a3a9a72

Please sign in to comment.