Skip to content

Commit 64dd34c

Browse files
committed
Fix jvm_version return type declaration
1 parent b083173 commit 64dd34c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scyjava/_jvm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
_shutdown_callbacks = []
2626

2727

28-
def jvm_version() -> str:
28+
def jvm_version() -> tuple[int, ...]:
2929
"""
3030
Gets the version of the JVM as a tuple, with each dot-separated digit
3131
as one element. Characters in the version string beyond only numbers
3232
and dots are ignored, in line with the java.version system property.
3333
3434
Examples:
35-
* OpenJDK 17.0.1 -> [17, 0, 1]
36-
* OpenJDK 11.0.9.1-internal -> [11, 0, 9, 1]
37-
* OpenJDK 1.8.0_312 -> [1, 8, 0]
35+
* OpenJDK 17.0.1 -> (17, 0, 1)
36+
* OpenJDK 11.0.9.1-internal -> (11, 0, 9, 1)
37+
* OpenJDK 1.8.0_312 -> (1, 8, 0)
3838
3939
If the JVM is already started, this function returns the equivalent of:
4040
jimport('java.lang.System')

0 commit comments

Comments
 (0)