Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 632ab4f

Browse files
committed
refactor(defaults): disallow style as None
1 parent c49e7a2 commit 632ab4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commitizen/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Settings(TypedDict, total=False):
4545
changelog_merge_prerelease: bool
4646
update_changelog_on_bump: bool
4747
use_shortcuts: bool
48-
style: list[tuple[str, str]] | None
48+
style: list[tuple[str, str]]
4949
customize: CzSettings
5050
major_version_zero: bool
5151
pre_bump_hooks: list[str] | None

tests/test_cz_customize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ def test_info_with_info_path(tmpdir, config_info):
564564

565565
def test_info_without_info(config_without_info):
566566
cz = CustomizeCommitsCz(config_without_info)
567-
assert cz.info() is None
567+
assert cz.info() == ""
568568

569569

570570
def test_commit_parser(config):

0 commit comments

Comments
 (0)