Skip to content

Commit 5da4f0f

Browse files
committed
Fix Code Quality checks
1 parent 5d430cc commit 5da4f0f

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

src/ansys/dpf/core/fields_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
from __future__ import annotations
3030

31-
from typing import TYPE_CHECKING
31+
from typing import TYPE_CHECKING, Union
3232

3333
from ansys import dpf
3434
from ansys.dpf.core import errors as dpf_errors, field

src/ansys/dpf/core/mapping_types.py

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,30 @@
2121
# SOFTWARE.
2222
"""Provides utilities for mapping and transforming data types between Python and C++ representations."""
2323

24-
from enum import Enum # noqa: F401
24+
from enum import Enum # noqa: F401 # pylint: disable=W0611
2525
import inspect
26-
from pathlib import Path # noqa: F401
26+
from pathlib import Path # noqa: F401 # pylint: disable=W0611
2727
import sys
2828

2929
# Import types to map to cpp (camel case to snake case)
30-
from ansys.dpf.core.available_result import AvailableResult, Homogeneity # noqa: F401
31-
from ansys.dpf.core.collection_base import CollectionBase # noqa: F401
30+
from ansys.dpf.core.available_result import ( # noqa: F401 # pylint: disable=W0611
31+
AvailableResult,
32+
Homogeneity,
33+
)
34+
from ansys.dpf.core.collection_base import CollectionBase # noqa: F401 # pylint: disable=W0611
3235
from ansys.dpf.core.common import (
3336
_camel_to_snake_case,
3437
_smart_dict_camel,
3538
_snake_to_camel_case,
3639
)
37-
from ansys.dpf.core.data_sources import DataSources # noqa: F401
38-
from ansys.dpf.core.dpf_array import DPFArray # noqa: F401
39-
from ansys.dpf.core.field import Field, FieldDefinition # noqa: F401
40-
from ansys.dpf.core.fields_container import FieldsContainer # noqa: F401
41-
from ansys.dpf.core.meshed_region import MeshedRegion # noqa: F401
42-
from ansys.dpf.core.scoping import Scoping # noqa: F401
43-
from ansys.dpf.core.support import Support # noqa: F401
44-
from ansys.dpf.core.time_freq_support import TimeFreqSupport # noqa: F401
40+
from ansys.dpf.core.data_sources import DataSources # noqa: F401 # pylint: disable=W0611
41+
from ansys.dpf.core.dpf_array import DPFArray # noqa: F401 # pylint: disable=W0611
42+
from ansys.dpf.core.field import Field, FieldDefinition # noqa: F401 # pylint: disable=W0611
43+
from ansys.dpf.core.fields_container import FieldsContainer # noqa: F401 # pylint: disable=W0611
44+
from ansys.dpf.core.meshed_region import MeshedRegion # noqa: F401 # pylint: disable=W0611
45+
from ansys.dpf.core.scoping import Scoping # noqa: F401 # pylint: disable=W0611
46+
from ansys.dpf.core.support import Support # noqa: F401 # pylint: disable=W0611
47+
from ansys.dpf.core.time_freq_support import TimeFreqSupport # noqa: F401 # pylint: disable=W0611
4548

4649
map_types_to_cpp = _smart_dict_camel()
4750
for classes in inspect.getmembers(sys.modules[__name__], inspect.isclass):

0 commit comments

Comments
 (0)