-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start small with checks for just some files Solve the problem with missing type hints for the cffi generated extension by handcrafting the type hints for ffi and generate the type hints for lib. Signed-off-by: Erik Larsson <who+github@cnackers.org>
- Loading branch information
Showing
10 changed files
with
285 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,3 +55,4 @@ dev = | |
myst-parser | ||
build | ||
installer | ||
mypy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from typing import Optional, Callable, Iterable | ||
|
||
error: type[Exception] | ||
class CData: | ||
def __getitem__(self, index: int) -> "CData": ... | ||
|
||
class CType: | ||
kind: str | ||
cname: str | ||
item: "CType" | ||
fields: Iterable[str] | ||
|
||
NULL: CData | ||
def gc(cdata: CData, destructor: Callable[[CData], None], size: int = 0)-> CData: ... | ||
def typeof(cdata: CData) -> CType: ... # FIXME, support str | ||
def new(cdecl: str, init: Optional[Callable[[CData], CData]] = None) -> CData: ... | ||
def string(cdata: CData, maxlen: Optional[int] = None) -> bytes: ... |
Oops, something went wrong.