-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63faec3
commit 34d0498
Showing
7 changed files
with
57 additions
and
17 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
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,41 @@ | ||
from typing import ( | ||
Any, | ||
Callable, | ||
Literal, | ||
overload, | ||
) | ||
|
||
import numba | ||
|
||
from pandas._typing import F | ||
|
||
def __getattr__(name: str) -> Any: ... # incomplete | ||
@overload | ||
def jit( | ||
signature_or_function: F = ..., | ||
) -> F: ... | ||
@overload | ||
def jit( | ||
signature_or_function: str | ||
| list[str] | ||
| numba.core.types.abstract.Type | ||
| list[numba.core.types.abstract.Type] = ..., | ||
locals: dict = ..., # TODO: Mapping of local variable names to Numba types | ||
cache: bool = ..., | ||
pipeline_class: numba.compiler.CompilerBase = ..., | ||
boundscheck: bool | None = ..., | ||
*, | ||
nopython: bool = ..., | ||
forceobj: bool = ..., | ||
looplift: bool = ..., | ||
error_model: Literal["python", "numpy"] = ..., | ||
inline: Literal["never", "always"] | Callable = ..., | ||
# TODO: If a callable is provided it will be called with the call expression | ||
# node that is requesting inlining, the caller's IR and callee's IR as | ||
# arguments, it is expected to return Truthy as to whether to inline. | ||
target: Literal["cpu", "gpu", "npyufunc", "cuda"] = ..., # deprecated | ||
nogil: bool = ..., | ||
parallel: bool = ..., | ||
) -> Callable[[F], F]: ... | ||
|
||
njit = jit |