mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 17:17:50 -05:00
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:
1 parent
dc4cd33c6e
commit
7899736f05
41 files changed
+64
-106
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user