Skip to content

Commit df192e5

Browse files
committed
refactor: Improve readability of conditional statement in base.py
1 parent 85c10b6 commit df192e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/datamodel_code_generator/parser

src/datamodel_code_generator/parser/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ def __change_from_import( # noqa: PLR0913, PLR0914
11081108
from_, import_ = exact_import(from_, import_, data_type.reference.short_name)
11091109
import_ = import_.replace("-", "_")
11101110
current_module_path = tuple(current_module_name.split(".")) if current_module_name else ()
1111-
if (
1111+
if ( # pragma: no cover
11121112
len(current_module_path) > 1
11131113
and current_module_path[-1].count(".") > 0
11141114
and not self.treat_dot_as_module

0 commit comments

Comments
 (0)