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

+6 -2
View File
@@ -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)