simple-salesforce-mdapi-deploy-sandbox-positional-arg

SfdcMetadataApi.deploy() in simple-salesforce requires sandbox as the second positional argument (not a keyword arg): deploy(zipfile, sandbox, **kwargs). Omitting it causes a TypeError or silently deploys with wrong sandbox flag. Determine sandbox status from api_client.org_configs[alias][‘type’] == ‘sandbox’.