- Notifications
You must be signed in to change notification settings - Fork673
Open
Description
Description of the problem, including code/CLI snippet
....ci_commit_sha=os.environ["CI_COMMIT_SHA"]mrs_related=project.commits.get(ci_commit_sha).merge_requests()ifnotmrs_related:raiseValueError(f"ci_commit_sha '{ci_commit_sha}' has no associated MRs!")iflen(mrs_related)>1:msg=f"ci_commit_sha '{ci_commit_sha}' has >1 associated MRs: [{csv(mrs_related)}]"warnings.warn(msg)returnmrs_related[0]["iid"]
Expected Behavior
No mypy errors
Actual Behavior
mypy errors
Specifications
- python-gitlab version: 3.10.0
- API version you are using (v3/v4): v4
- Gitlab server version (or gitlab.com): gitlab.com