Add specific type annotations to JavaObjectWrapper.
import logging
from .case_conversion import _to_camel_case_name, _to_snake_case_name
-from typing import Any
+from typing import Any, Callable
class JavaObjectWrapper:
def __init__(self, val : Any) -> None:
self._val = val
self._class = self.unwrap().getClass().getSimpleName()
- def __repr__(self) -> Any:
+ def __repr__(self) -> str:
return "[{0} => {1}]".format(self._class, type(self))
- def __getattr__(self, k : Any) -> Any:
+ def __getattr__(self, k : str) -> Callable:
python_name = _to_snake_case_name(k)
if k != python_name:
