Skip to content

Commit ade1703

Browse files
committed
fix: review suggestions
1 parent 4886998 commit ade1703

File tree

783 files changed

+4830
-4079
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

783 files changed

+4830
-4079
lines changed

src/ansys/dpf/core/inputs.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ def connect(self, inpt: T):
7878
7979
Parameters
8080
----------
81-
inpt : str, int, double, Field, FieldsContainer, Scoping, DataSources, MeshedRegion, Enum,
82-
Output, Outputs, Operator, os.PathLike
81+
inpt : str, int, float, bool, list[float], list[int], dict, Operator, PropertyField, ScopingsContainer,
82+
DataSources, UnitSystem, CyclicSupport, DataTree, Workflow, StreamsContainer, FieldsContainer, Field,
83+
CustomTypeField, MeshedRegion, Any, GenericDataContainer, Scoping, StringField, MeshesContainer, ResultInfo,
84+
TimeFreqSupport, Output, Outputs, os.PathLike, UnitSystem, Enum # noqa: E501
8385
Input of the operator.
8486
8587
"""
@@ -247,8 +249,10 @@ def connect(self, inpt):
247249
248250
Parameters
249251
----------
250-
inpt : str, int, double, bool, list[int], list[float], Field, FieldsContainer, Scoping, Enum,
251-
ScopingsContainer, MeshedRegion, MeshesContainer, DataSources, CyclicSupport, Outputs, os.PathLike # noqa: E501
252+
inpt : str, int, float, bool, list[float], list[int], dict, Operator, PropertyField, ScopingsContainer,
253+
DataSources, UnitSystem, CyclicSupport, DataTree, Workflow, StreamsContainer, FieldsContainer, Field,
254+
CustomTypeField, MeshedRegion, Any, GenericDataContainer, Scoping, StringField, MeshesContainer, ResultInfo,
255+
TimeFreqSupport, Output, Outputs, os.PathLike, UnitSystem, Enum # noqa: E501
252256
Input of the operator.
253257
254258
"""

src/ansys/dpf/core/operators/averaging/elemental_difference.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from __future__ import annotations
8+
from typing import TYPE_CHECKING
89

910
from warnings import warn
1011
from ansys.dpf.core.dpf_operator import Operator
@@ -14,11 +15,11 @@
1415
from ansys.dpf.core.config import Config
1516
from ansys.dpf.core.server_types import AnyServerType
1617

17-
# For type checking
18-
from ansys.dpf.core.field import Field
19-
from ansys.dpf.core.fields_container import FieldsContainer
20-
from ansys.dpf.core.scoping import Scoping
21-
from ansys.dpf.core.meshed_region import MeshedRegion
18+
if TYPE_CHECKING:
19+
from ansys.dpf.core.scoping import Scoping
20+
from ansys.dpf.core.fields_container import FieldsContainer
21+
from ansys.dpf.core.meshed_region import MeshedRegion
22+
from ansys.dpf.core.field import Field
2223

2324

2425
class elemental_difference(Operator):

src/ansys/dpf/core/operators/averaging/elemental_difference_fc.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from __future__ import annotations
8+
from typing import TYPE_CHECKING
89

910
from warnings import warn
1011
from ansys.dpf.core.dpf_operator import Operator
@@ -14,12 +15,12 @@
1415
from ansys.dpf.core.config import Config
1516
from ansys.dpf.core.server_types import AnyServerType
1617

17-
# For type checking
18-
from ansys.dpf.core.fields_container import FieldsContainer
19-
from ansys.dpf.core.scoping import Scoping
20-
from ansys.dpf.core.meshes_container import MeshesContainer
21-
from ansys.dpf.core.scopings_container import ScopingsContainer
22-
from ansys.dpf.core.meshed_region import MeshedRegion
18+
if TYPE_CHECKING:
19+
from ansys.dpf.core.scoping import Scoping
20+
from ansys.dpf.core.scopings_container import ScopingsContainer
21+
from ansys.dpf.core.meshes_container import MeshesContainer
22+
from ansys.dpf.core.fields_container import FieldsContainer
23+
from ansys.dpf.core.meshed_region import MeshedRegion
2324

2425

2526
class elemental_difference_fc(Operator):

src/ansys/dpf/core/operators/averaging/elemental_fraction_fc.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from __future__ import annotations
8+
from typing import TYPE_CHECKING
89

910
from warnings import warn
1011
from ansys.dpf.core.dpf_operator import Operator
@@ -14,10 +15,10 @@
1415
from ansys.dpf.core.config import Config
1516
from ansys.dpf.core.server_types import AnyServerType
1617

17-
# For type checking
18-
from ansys.dpf.core.meshed_region import MeshedRegion
19-
from ansys.dpf.core.fields_container import FieldsContainer
20-
from ansys.dpf.core.scoping import Scoping
18+
if TYPE_CHECKING:
19+
from ansys.dpf.core.fields_container import FieldsContainer
20+
from ansys.dpf.core.meshed_region import MeshedRegion
21+
from ansys.dpf.core.scoping import Scoping
2122

2223

2324
class elemental_fraction_fc(Operator):

src/ansys/dpf/core/operators/averaging/elemental_mean.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from __future__ import annotations
8+
from typing import TYPE_CHECKING
89

910
from warnings import warn
1011
from ansys.dpf.core.dpf_operator import Operator
@@ -14,9 +15,9 @@
1415
from ansys.dpf.core.config import Config
1516
from ansys.dpf.core.server_types import AnyServerType
1617

17-
# For type checking
18-
from ansys.dpf.core.scoping import Scoping
19-
from ansys.dpf.core.field import Field
18+
if TYPE_CHECKING:
19+
from ansys.dpf.core.scoping import Scoping
20+
from ansys.dpf.core.field import Field
2021

2122

2223
class elemental_mean(Operator):

src/ansys/dpf/core/operators/averaging/elemental_mean_fc.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from __future__ import annotations
8+
from typing import TYPE_CHECKING
89

910
from warnings import warn
1011
from ansys.dpf.core.dpf_operator import Operator
@@ -14,12 +15,12 @@
1415
from ansys.dpf.core.config import Config
1516
from ansys.dpf.core.server_types import AnyServerType
1617

17-
# For type checking
18-
from ansys.dpf.core.fields_container import FieldsContainer
19-
from ansys.dpf.core.scoping import Scoping
20-
from ansys.dpf.core.meshes_container import MeshesContainer
21-
from ansys.dpf.core.scopings_container import ScopingsContainer
22-
from ansys.dpf.core.meshed_region import MeshedRegion
18+
if TYPE_CHECKING:
19+
from ansys.dpf.core.scoping import Scoping
20+
from ansys.dpf.core.scopings_container import ScopingsContainer
21+
from ansys.dpf.core.meshes_container import MeshesContainer
22+
from ansys.dpf.core.fields_container import FieldsContainer
23+
from ansys.dpf.core.meshed_region import MeshedRegion
2324

2425

2526
class elemental_mean_fc(Operator):

src/ansys/dpf/core/operators/averaging/elemental_nodal_to_nodal.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from __future__ import annotations
8+
from typing import TYPE_CHECKING
89

910
from warnings import warn
1011
from ansys.dpf.core.dpf_operator import Operator
@@ -14,12 +15,12 @@
1415
from ansys.dpf.core.config import Config
1516
from ansys.dpf.core.server_types import AnyServerType
1617

17-
# For type checking
18-
from ansys.dpf.core.field import Field
19-
from ansys.dpf.core.fields_container import FieldsContainer
20-
from ansys.dpf.core.scoping import Scoping
21-
from ansys.dpf.core.property_field import PropertyField
22-
from ansys.dpf.core.meshed_region import MeshedRegion
18+
if TYPE_CHECKING:
19+
from ansys.dpf.core.scoping import Scoping
20+
from ansys.dpf.core.property_field import PropertyField
21+
from ansys.dpf.core.fields_container import FieldsContainer
22+
from ansys.dpf.core.meshed_region import MeshedRegion
23+
from ansys.dpf.core.field import Field
2324

2425

2526
class elemental_nodal_to_nodal(Operator):

src/ansys/dpf/core/operators/averaging/elemental_nodal_to_nodal_elemental.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from __future__ import annotations
8+
from typing import TYPE_CHECKING
89

910
from warnings import warn
1011
from ansys.dpf.core.dpf_operator import Operator
@@ -14,10 +15,10 @@
1415
from ansys.dpf.core.config import Config
1516
from ansys.dpf.core.server_types import AnyServerType
1617

17-
# For type checking
18-
from ansys.dpf.core.field import Field
19-
from ansys.dpf.core.scoping import Scoping
20-
from ansys.dpf.core.fields_container import FieldsContainer
18+
if TYPE_CHECKING:
19+
from ansys.dpf.core.fields_container import FieldsContainer
20+
from ansys.dpf.core.scoping import Scoping
21+
from ansys.dpf.core.field import Field
2122

2223

2324
class elemental_nodal_to_nodal_elemental(Operator):

src/ansys/dpf/core/operators/averaging/elemental_nodal_to_nodal_elemental_fc.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from __future__ import annotations
8+
from typing import TYPE_CHECKING
89

910
from warnings import warn
1011
from ansys.dpf.core.dpf_operator import Operator
@@ -14,9 +15,9 @@
1415
from ansys.dpf.core.config import Config
1516
from ansys.dpf.core.server_types import AnyServerType
1617

17-
# For type checking
18-
from ansys.dpf.core.fields_container import FieldsContainer
19-
from ansys.dpf.core.scoping import Scoping
18+
if TYPE_CHECKING:
19+
from ansys.dpf.core.fields_container import FieldsContainer
20+
from ansys.dpf.core.scoping import Scoping
2021

2122

2223
class elemental_nodal_to_nodal_elemental_fc(Operator):

src/ansys/dpf/core/operators/averaging/elemental_nodal_to_nodal_fc.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
from __future__ import annotations
8+
from typing import TYPE_CHECKING
89

910
from warnings import warn
1011
from ansys.dpf.core.dpf_operator import Operator
@@ -14,12 +15,12 @@
1415
from ansys.dpf.core.config import Config
1516
from ansys.dpf.core.server_types import AnyServerType
1617

17-
# For type checking
18-
from ansys.dpf.core.fields_container import FieldsContainer
19-
from ansys.dpf.core.scoping import Scoping
20-
from ansys.dpf.core.meshes_container import MeshesContainer
21-
from ansys.dpf.core.scopings_container import ScopingsContainer
22-
from ansys.dpf.core.meshed_region import MeshedRegion
18+
if TYPE_CHECKING:
19+
from ansys.dpf.core.scoping import Scoping
20+
from ansys.dpf.core.scopings_container import ScopingsContainer
21+
from ansys.dpf.core.meshes_container import MeshesContainer
22+
from ansys.dpf.core.fields_container import FieldsContainer
23+
from ansys.dpf.core.meshed_region import MeshedRegion
2324

2425

2526
class elemental_nodal_to_nodal_fc(Operator):

0 commit comments

Comments
 (0)