Skip to content

Commit 825b536

Browse files
committed
fix typing to Optional instead
1 parent aa8a99d commit 825b536

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
@@ -1,4 +1,5 @@
11
from pathlib import Path
2+
from typing_extensions import Optional
23

34
import git
45
from git.exc import GitCommandError
@@ -149,7 +150,7 @@ def create_pr(
149150
base_branch_name: str,
150151
target_branch_name: str,
151152
scm_client: ScmPlatformClientProtocol,
152-
issue_url: str | None = None,
153+
issue_url: Optional[str] = None,
153154
force: bool = False,
154155
):
155156
prs = scm_client.find_prs(repo_slug, original_branch=base_branch_name, feature_branch=target_branch_name)

0 commit comments

Comments
 (0)