def _handle_package_signing(self, sign, sign_with, identity): if not sign and identity: raise exceptions.InvalidSigningConfiguration( "sign must be given along with identity") self.sign = sign self.sign_with = sign_with self.identity = identity
def _handle_package_signing(self, sign: bool, sign_with: str, identity: Optional[str]) -> None: if not sign and identity: raise exceptions.InvalidSigningConfiguration( "sign must be given along with identity") self.sign = sign self.sign_with = sign_with self.identity = identity