view python/pydc/pydc-stubs/pydc.pyi @ 48:a2125195b052

added callconv switching to one example
author Tassilo Philipp
date Fri, 13 Nov 2020 18:27:09 +0100
parents 44045db8fa5f
children
line wrap: on
line source

import sys
from typing import Optional, Any, TypeVar

# 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: ...