Mercurial > pub > dyncall > bindings
view python/pydc/pydc.pyi @ 55:2e8a56976bf8
fixed missing () making branch always be entered
author | Tassilo Philipp |
---|---|
date | Tue, 02 Feb 2021 20:56:54 +0100 |
parents | 918dab7a6606 |
children | 8e905c0798c7 |
line wrap: on
line source
import sys from typing import Optional, Any, TypeVar, Callable # Handle type, depending on python version this is either internal type # PyCObject or PyCapsule, neither of one can be used as annotation H = TypeVar('H') def load(libpath: Optional[str]) -> H: ... def find(libhandle: H, symbol: str) -> H: ... def free(libhandle: H) -> None: ... def get_path(libhandle: Optional[H]) -> str: ... def call(funcptr: H, signature: str, *arguments: Any) -> Any: ... def new_callback(c_signature: str, f: Callable) -> H: ... # note: only callbacks with positional args def free_callback(cbhandle: H) -> None: ...