comparison python/pydc/pydc.pyi @ 50:edf5c85de5ac

put pyi next to so for mypy to pick it up, directly
author Tassilo Philipp
date Sat, 14 Nov 2020 21:18:09 +0100
parents python/pydc/pydc-stubs/pydc.pyi@44045db8fa5f
children 918dab7a6606
comparison
equal deleted inserted replaced
49:d6670bd553dd 50:edf5c85de5ac
1 import sys
2 from typing import Optional, Any, TypeVar
3
4 # Handle type, depending on python version this is either internal type
5 # PyCObject or PyCapsule, neither of one can be used as annotation
6 H = TypeVar('H')
7
8 def load(libpath: Optional[str]) -> H: ...
9 def find(libhandle: H, symbol: str) -> H: ...
10 def free(libhandle: H) -> None: ...
11 def get_path(libhandle: Optional[H]) -> str: ...
12 def call(funcptr: H, signature: str, *arguments: Any) -> Any: ...
13