We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85c10b6 commit df192e5Copy full SHA for df192e5
1 file changed
src/datamodel_code_generator/parser/base.py
@@ -1108,7 +1108,7 @@ def __change_from_import( # noqa: PLR0913, PLR0914
1108
from_, import_ = exact_import(from_, import_, data_type.reference.short_name)
1109
import_ = import_.replace("-", "_")
1110
current_module_path = tuple(current_module_name.split(".")) if current_module_name else ()
1111
- if (
+ if ( # pragma: no cover
1112
len(current_module_path) > 1
1113
and current_module_path[-1].count(".") > 0
1114
and not self.treat_dot_as_module
0 commit comments