Skip to content

Commit f1ea8f2

Browse files
committed
fmt
1 parent daa8356 commit f1ea8f2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/jvm/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ def install_pth(self) -> bool:
235235
with open(pth_file, "w", encoding="utf-8") as f:
236236
f.write("import jvm\n")
237237
logger.info("✓ jvm.pth file installed successfully!")
238-
logger.info("Now you can use 'from java.lang import System' directly in any Python script")
238+
logger.info(
239+
"Now you can use 'from java.lang import System' directly in any Python script"
240+
)
239241
return True
240242
except Exception as e:
241243
logger.error(f"Failed to create jvm.pth file: {e}")

src/jvm/typeconv.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def to_python(jvm: JVM, jobject: Any) -> object:
4141
# create an ObjectProxy anyway
4242
if isinstance(jobject, (int, ctypes.c_void_p)) and jobject != 0:
4343
from .proxy import ObjectProxy
44+
4445
return ObjectProxy(jvm, jobject)
4546
return jobject
4647

@@ -68,4 +69,5 @@ def to_python(jvm: JVM, jobject: Any) -> object:
6869

6970
# For any other Java object, create an ObjectProxy
7071
from .proxy import ObjectProxy
72+
7173
return ObjectProxy(jvm, jobject)

0 commit comments

Comments
 (0)