Skip to content

Commit 4c1a2a3

Browse files
fix: use Python 3.9 compatible type hints
Co-Authored-By: Patched <[email protected]>
1 parent 13f3a43 commit 4c1a2a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

patchwork/steps/CreatePR/CreatePR.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import git
44
from git.exc import GitCommandError
5+
from typing import Optional
56

67
from patchwork.common.client.scm import (
78
GithubClient,
@@ -148,7 +149,7 @@ def create_pr(
148149
target_branch_name: str,
149150
scm_client: ScmPlatformClientProtocol,
150151
force: bool = False,
151-
issue_url: str | None = None, # Optional GitHub Issue URL to link the PR to
152+
issue_url: Optional[str] = None, # Optional GitHub Issue URL to link the PR to
152153
):
153154
prs = scm_client.find_prs(repo_slug, original_branch=base_branch_name, feature_branch=target_branch_name)
154155
pr = next(iter(prs), None)

0 commit comments

Comments
 (0)