Skip to content

Commit c77dcc5

Browse files
committed
fix(typing): no_raise is declared as optional
1 parent f49eaba commit c77dcc5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

commitizen/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import argparse
44
import logging
55
import sys
6-
from pathlib import Path
76
from functools import partial
7+
from pathlib import Path
88
from types import TracebackType
99

1010
import argcomplete
@@ -361,7 +361,7 @@
361361

362362

363363
def commitizen_excepthook(
364-
type, value, traceback, debug=False, no_raise: list[int] = None
364+
type, value, traceback, debug=False, no_raise: list[int] | None = None
365365
):
366366
traceback = traceback if isinstance(traceback, TracebackType) else None
367367
if not no_raise:

commitizen/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Settings(TypedDict, total=False):
4040
tag_format: str | None
4141
bump_message: str | None
4242
allow_abort: bool
43-
allowed_prefixes: List[str]
43+
allowed_prefixes: list[str]
4444
changelog_file: str
4545
changelog_incremental: bool
4646
changelog_start_rev: str | None

0 commit comments

Comments
 (0)