Skip to content

Commit 00c3a85

Browse files
committed
Fix ci again
1 parent ec258c3 commit 00c3a85

File tree

5 files changed

+61
-17
lines changed

5 files changed

+61
-17
lines changed

src/ansys/fluent/core/launcher/container_launcher.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
>>> container_solver_session = container_solver_launcher()
3636
"""
3737

38-
import inspect
3938
import logging
4039
import os
4140
import time
@@ -67,7 +66,9 @@
6766
from ansys.fluent.core.utils.fluent_version import FluentVersion
6867

6968

70-
class ContainerArgsWithoutDryRun(TypedDict, total=False):
69+
class ContainerArgsWithoutDryRun(
70+
TypedDict, total=False
71+
): # pylint: disable=missing-class-docstring
7172
ui_mode: UIMode | str | None
7273
graphics_driver: (
7374
FluentWindowsGraphicsDriver | FluentLinuxGraphicsDriver | str | None
@@ -89,7 +90,9 @@ class ContainerArgsWithoutDryRun(TypedDict, total=False):
8990
use_podman_compose: bool | None
9091

9192

92-
class ContainerArgs(ContainerArgsWithoutDryRun, total=False):
93+
class ContainerArgs(
94+
ContainerArgsWithoutDryRun, total=False
95+
): # pylint: disable=missing-class-docstring
9396
dry_run: bool
9497

9598

src/ansys/fluent/core/launcher/launcher.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ def _version_to_dimension(old_arg_val):
130130
return None
131131

132132

133-
class LaunchFluentArgs(TypedDict, total=False):
133+
class LaunchFluentArgs(
134+
TypedDict, total=False
135+
): # pylint: disable=missing-class-docstring
134136
product_version: FluentVersion | str | float | int | None
135137
dimension: Dimension | int
136138
precision: Precision | str
@@ -161,7 +163,9 @@ class LaunchFluentArgs(TypedDict, total=False):
161163
use_podman_compose: bool
162164

163165

164-
class SlurmSchedulerOptions(TypedDict, total=False):
166+
class SlurmSchedulerOptions(
167+
TypedDict, total=False
168+
): # pylint: disable=missing-class-docstring
165169
scheduler: Required[Literal["slurm"]]
166170
scheduler_headnode: str
167171
scheduler_queue: str
@@ -175,34 +179,44 @@ def launch_fluent(
175179
mode: Literal[FluentMode.MESHING, "meshing"],
176180
**kwargs: Unpack[LaunchFluentArgs],
177181
) -> Meshing: ...
182+
183+
178184
@overload
179185
def launch_fluent(
180186
*,
181187
dry_run: Literal[False] = False,
182188
mode: Literal[FluentMode.PURE_MESHING, "pure_meshing"],
183189
**kwargs: Unpack[LaunchFluentArgs],
184190
) -> PureMeshing: ...
191+
192+
185193
@overload
186194
def launch_fluent(
187195
*,
188196
dry_run: Literal[False] = False,
189197
mode: Literal[FluentMode.SOLVER, "solver"] = FluentMode.SOLVER,
190198
**kwargs: Unpack[LaunchFluentArgs],
191199
) -> Solver: ...
200+
201+
192202
@overload
193203
def launch_fluent(
194204
*,
195205
dry_run: Literal[False] = False,
196206
mode: Literal[FluentMode.SOLVER_ICING, "solver_icing"],
197207
**kwargs: Unpack[LaunchFluentArgs],
198208
) -> SolverIcing: ...
209+
210+
199211
@overload
200212
def launch_fluent(
201213
*,
202214
dry_run: Literal[False] = False,
203215
mode: Literal[FluentMode.SOLVER_AERO, "solver_aero"] = ...,
204216
**kwargs: Unpack[LaunchFluentArgs],
205217
) -> SolverAero: ...
218+
219+
206220
@overload
207221
def launch_fluent(
208222
*,
@@ -211,6 +225,8 @@ def launch_fluent(
211225
mode: FluentMode | str = FluentMode.SOLVER,
212226
**kwargs: Unpack[LaunchFluentArgs],
213227
) -> SlurmFuture: ...
228+
229+
214230
@overload
215231
def launch_fluent(
216232
*,

src/ansys/fluent/core/launcher/pim_launcher.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
>>> pim_solver_session = pim_solver_launcher()
3636
"""
3737

38-
import inspect
3938
import logging
4039
import os
4140
import tempfile
@@ -64,7 +63,9 @@
6463
import ansys.platform.instancemanagement as pypim
6564

6665

67-
class PIMArgsWithoutDryRun(TypedDict, total=False):
66+
class PIMArgsWithoutDryRun(
67+
TypedDict, total=False
68+
): # pylint: disable=missing-class-docstring
6869
ui_mode: UIMode | str | None
6970
graphics_driver: (
7071
FluentWindowsGraphicsDriver | FluentLinuxGraphicsDriver | str | None
@@ -82,11 +83,13 @@ class PIMArgsWithoutDryRun(TypedDict, total=False):
8283
file_transfer_service: Any | None
8384

8485

85-
class PIMArgs(PIMArgsWithoutDryRun, total=False):
86+
class PIMArgs(
87+
PIMArgsWithoutDryRun, total=False
88+
): # pylint: disable=missing-class-docstring
8689
dry_run: bool
8790

8891

89-
class PIMArgsWithMode(PIMArgs, total=False):
92+
class PIMArgsWithMode(PIMArgs, total=False): # pylint: disable=missing-class-docstring
9093
mode: FluentMode | str | None
9194

9295

src/ansys/fluent/core/launcher/standalone_launcher.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
>>> standalone_solver_session = standalone_solver_launcher()
3636
"""
3737

38-
import inspect
3938
import logging
4039
import os
4140
from pathlib import Path
@@ -77,9 +76,9 @@
7776
from ansys.fluent.core.utils.fluent_version import FluentVersion
7877

7978

80-
class StandaloneArgsWithoutDryRun(TypedDict, total=False):
81-
"""TypedDict for standalone launcher arguments without dry_run."""
82-
79+
class StandaloneArgsWithoutDryRun(
80+
TypedDict, total=False
81+
): # pylint: disable=missing-class-docstring
8382
product_version: FluentVersion | str | float | int | None
8483
dimension: Dimension | int
8584
precision: Precision | str
@@ -106,7 +105,9 @@ class StandaloneArgsWithoutDryRun(TypedDict, total=False):
106105
file_transfer_service: Any | None
107106

108107

109-
class StandaloneArgs(StandaloneArgsWithoutDryRun, total=False):
108+
class StandaloneArgs(
109+
StandaloneArgsWithoutDryRun, total=False
110+
): # pylint: disable=missing-class-docstring
110111
dry_run: bool | None
111112

112113

src/ansys/fluent/core/session_utilities.py

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def from_install(
7878
dry_run: Literal[False] = False,
7979
**kwargs: Unpack[StandaloneArgsWithoutDryRun],
8080
) -> BaseSession: ...
81+
8182
@overload
8283
@classmethod
8384
def from_install(
@@ -88,7 +89,7 @@ def from_install(
8889
) -> tuple[str, str]: ...
8990

9091
@classmethod
91-
def from_install(
92+
def from_install( # pylint: disable=missing-param-doc
9293
cls,
9394
*,
9495
dry_run: bool = False,
@@ -184,6 +185,7 @@ def from_container(
184185
dry_run: Literal[False] = False,
185186
**kwargs: Unpack[ContainerArgsWithoutDryRun],
186187
) -> BaseSession: ...
188+
187189
@overload
188190
@classmethod
189191
def from_container(
@@ -194,7 +196,7 @@ def from_container(
194196
) -> dict[str, Any]: ...
195197

196198
@classmethod
197-
def from_container(
199+
def from_container( # pylint: disable=missing-param-doc
198200
cls,
199201
*,
200202
dry_run: bool = False,
@@ -284,6 +286,7 @@ def from_pim(
284286
dry_run: Literal[False] = False,
285287
**kwargs: Unpack[PIMArgsWithoutDryRun],
286288
) -> BaseSession: ...
289+
287290
@overload
288291
@classmethod
289292
def from_pim(
@@ -294,7 +297,7 @@ def from_pim(
294297
) -> dict[str, Any]: ...
295298

296299
@classmethod
297-
def from_pim(
300+
def from_pim( # pylint: disable=missing-param-doc
298301
cls,
299302
*,
300303
dry_run: bool = False,
@@ -433,6 +436,7 @@ def from_install(
433436
dry_run: Literal[False] = False,
434437
**kwargs: Unpack[LaunchFluentArgs],
435438
) -> session_meshing.Meshing: ...
439+
436440
@overload
437441
@classmethod
438442
def from_install(
@@ -450,6 +454,7 @@ def from_container(
450454
dry_run: Literal[False] = False,
451455
**kwargs: Unpack[ContainerArgsWithoutDryRun],
452456
) -> session_meshing.Meshing: ...
457+
453458
@overload
454459
@classmethod
455460
def from_container(
@@ -467,6 +472,7 @@ def from_pim(
467472
dry_run: Literal[False] = False,
468473
**kwargs: Unpack[PIMArgsWithoutDryRun],
469474
) -> session_meshing.Meshing: ...
475+
470476
@overload
471477
@classmethod
472478
def from_pim(
@@ -490,6 +496,7 @@ def from_install(
490496
dry_run: Literal[False] = False,
491497
**kwargs: Unpack[LaunchFluentArgs],
492498
) -> session_pure_meshing.PureMeshing: ...
499+
493500
@overload
494501
@classmethod
495502
def from_install(
@@ -507,6 +514,7 @@ def from_container(
507514
dry_run: Literal[False] = False,
508515
**kwargs: Unpack[ContainerArgsWithoutDryRun],
509516
) -> session_pure_meshing.PureMeshing: ...
517+
510518
@overload
511519
@classmethod
512520
def from_container(
@@ -524,6 +532,7 @@ def from_pim(
524532
dry_run: Literal[False] = False,
525533
**kwargs: Unpack[PIMArgsWithoutDryRun],
526534
) -> session_pure_meshing.PureMeshing: ...
535+
527536
@overload
528537
@classmethod
529538
def from_pim(
@@ -547,6 +556,7 @@ def from_install(
547556
dry_run: Literal[False] = False,
548557
**kwargs: Unpack[LaunchFluentArgs],
549558
) -> session_solver.Solver: ...
559+
550560
@overload
551561
@classmethod
552562
def from_install(
@@ -564,6 +574,7 @@ def from_container(
564574
dry_run: Literal[False] = False,
565575
**kwargs: Unpack[ContainerArgsWithoutDryRun],
566576
) -> session_solver.Solver: ...
577+
567578
@overload
568579
@classmethod
569580
def from_container(
@@ -581,6 +592,7 @@ def from_pim(
581592
dry_run: Literal[False] = False,
582593
**kwargs: Unpack[PIMArgsWithoutDryRun],
583594
) -> session_solver.Solver: ...
595+
584596
@overload
585597
@classmethod
586598
def from_pim(
@@ -604,6 +616,7 @@ def from_install(
604616
dry_run: Literal[False] = False,
605617
**kwargs: Unpack[LaunchFluentArgs],
606618
) -> session_solver.Solver: ...
619+
607620
@overload
608621
@classmethod
609622
def from_install(
@@ -621,6 +634,7 @@ def from_container(
621634
dry_run: Literal[False] = False,
622635
**kwargs: Unpack[ContainerArgsWithoutDryRun],
623636
) -> session_solver.Solver: ...
637+
624638
@overload
625639
@classmethod
626640
def from_container(
@@ -638,6 +652,7 @@ def from_pim(
638652
dry_run: Literal[False] = False,
639653
**kwargs: Unpack[PIMArgsWithoutDryRun],
640654
) -> session_solver.Solver: ...
655+
641656
@overload
642657
@classmethod
643658
def from_pim(
@@ -661,6 +676,7 @@ def from_install(
661676
dry_run: Literal[False] = False,
662677
**kwargs: Unpack[LaunchFluentArgs],
663678
) -> session_solver_aero.SolverAero: ...
679+
664680
@overload
665681
@classmethod
666682
def from_install(
@@ -678,6 +694,7 @@ def from_container(
678694
dry_run: Literal[False] = False,
679695
**kwargs: Unpack[ContainerArgsWithoutDryRun],
680696
) -> session_solver_aero.SolverAero: ...
697+
681698
@overload
682699
@classmethod
683700
def from_container(
@@ -695,6 +712,7 @@ def from_pim(
695712
dry_run: Literal[False] = False,
696713
**kwargs: Unpack[PIMArgsWithoutDryRun],
697714
) -> session_solver_aero.SolverAero: ...
715+
698716
@overload
699717
@classmethod
700718
def from_pim(
@@ -718,6 +736,7 @@ def from_install(
718736
dry_run: Literal[False] = False,
719737
**kwargs: Unpack[LaunchFluentArgs],
720738
) -> session_solver_icing.SolverIcing: ...
739+
721740
@overload
722741
@classmethod
723742
def from_install(
@@ -735,6 +754,7 @@ def from_container(
735754
dry_run: Literal[False] = False,
736755
**kwargs: Unpack[ContainerArgsWithoutDryRun],
737756
) -> session_solver_icing.SolverIcing: ...
757+
738758
@overload
739759
@classmethod
740760
def from_container(
@@ -752,6 +772,7 @@ def from_pim(
752772
dry_run: Literal[False] = False,
753773
**kwargs: Unpack[PIMArgsWithoutDryRun],
754774
) -> session_solver_icing.SolverIcing: ...
775+
755776
@overload
756777
@classmethod
757778
def from_pim(

0 commit comments

Comments
 (0)