Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Aug 22, 2024
1 parent 80769f6 commit 69bbe2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jpype/_jvmfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
'JVMNotFoundException',
'JVMNotSupportedException']

from typing import Sequence
from typing import Sequence, Tuple

Check notice

Code scanning / CodeQL

Unused import Note

Import of 'Sequence' is not used.


class JVMNotFoundException(ValueError):
Expand Down Expand Up @@ -79,7 +79,7 @@ class JVMFinder:
_libfile: str = "libjvm.so"

# Predefined locations
_locations: Sequence = ("/usr/lib/jvm", "/usr/java")
_locations: Tuple[str, ...] = ("/usr/lib/jvm", "/usr/java")

def __init__(self):
# Search methods
Expand Down Expand Up @@ -285,7 +285,7 @@ class DarwinJVMFinder(LinuxJVMFinder):
# Library file name
_libfile = "libjli.dylib"
# Predefined locations
_locations = ('/Library/Java/JavaVirtualMachines',)
_locations = ('/Library/Java/JavaVirtualMachines',) # type: ignore

def __init__(self):
"""
Expand Down

0 comments on commit 69bbe2e

Please sign in to comment.