Python ruff fixes

* Python: Clean up imports.
* Python: Clean up error handling example.
* Python: Remove unused local variables
* Python: Avoid comparing against True/False.
* Python: Remove unused name variable.
* Python: Reuse class definition type variable.
* Python: Fix more unused imports
* Black fixes
This commit is contained in:
Kristian Bendiksen authored and GitHub committed 2025-05-16 15:46:45 +02:00
1 parent dc4cd33c6e
commit 7899736f05
41 files changed
+64 -106

No files matched your search

+7 -8
View File
@@ -35,7 +35,6 @@ result
"""
import builtins
import grpc
from typing import List, Tuple
@@ -49,16 +48,16 @@ import Properties_pb2_grpc
import NNCProperties_pb2
import NNCProperties_pb2_grpc
from .resinsight_classes import (
Case,
EclipseCase,
GeoMechCase,
WellBoreStabilityPlot,
WbsParameters,
Case as Case,
EclipseCase as EclipseCase,
GeoMechCase as GeoMechCase,
WellBoreStabilityPlot as WellBoreStabilityPlot,
WbsParameters as WbsParameters,
)
from .grid import Grid
from .grid import Grid as Grid
from .pdmobject import add_method
from .view import View
from .view import View as View
from .simulation_well import SimulationWell
import rips.project # full name import due to circular dependency