File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ def get_core_editor() -> str | None:
317317 return None
318318
319319
320- def smart_open (* args : Any , ** kwargs : Any ) -> IO [Any ]: # noqa: ANN401
320+ def smart_open (* args : Any , ** kwargs : Any ) -> IO [Any ]:
321321 """Open a file with the EOL style determined from Git."""
322322 return open (* args , newline = EOLType .for_open (), ** kwargs )
323323
Original file line number Diff line number Diff line change 11import platform
22import sys
3- from typing import cast
3+ from typing import TYPE_CHECKING , cast
44
55import pytest
66from pytest_mock import MockerFixture
77
88from commitizen import commands
99from commitizen .__version__ import __version__
10- from commitizen .commands .version import VersionArgs
1110from commitizen .config .base_config import BaseConfig
1211
12+ if TYPE_CHECKING :
13+ from commitizen .commands .version import VersionArgs
14+
1315
1416def test_version_for_showing_project_version_error (config , capsys ):
1517 # No version specified in config
You can’t perform that action at this time.
0 commit comments