Skip to content

Commit e54741d

Browse files
committed
fix(typing): no_raise is declared as optional
1 parent 7a5c754 commit e54741d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commitizen/cli.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import argparse
22
import logging
33
import sys
4-
from pathlib import Path
54
from functools import partial
5+
from pathlib import Path
66
from types import TracebackType
7-
from typing import List
7+
from typing import List, Optional
88

99
import argcomplete
1010
from decli import cli
@@ -360,7 +360,7 @@
360360

361361

362362
def commitizen_excepthook(
363-
type, value, traceback, debug=False, no_raise: List[int] = None
363+
type, value, traceback, debug=False, no_raise: Optional[List[int]] = None
364364
):
365365
traceback = traceback if isinstance(traceback, TracebackType) else None
366366
if not no_raise:

0 commit comments

Comments
 (0)