mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -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
@@ -2,12 +2,16 @@
|
||||
ResInsight 3d view module
|
||||
"""
|
||||
|
||||
import builtins
|
||||
import Commands_pb2 as Cmd
|
||||
|
||||
import rips.case # Circular import of Case, which already imports View. Use full name.
|
||||
from .pdmobject import add_method
|
||||
from .resinsight_classes import View, ViewWindow, EclipseView, GeoMechView
|
||||
from .resinsight_classes import (
|
||||
View as View,
|
||||
ViewWindow as ViewWindow,
|
||||
EclipseView as EclipseView,
|
||||
GeoMechView as GeoMechView,
|
||||
)
|
||||
|
||||
|
||||
@add_method(View)
|
||||
|
||||
Reference in new issue
Block a user