Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
906254f
explicitly import `fbuiltin` members in `gt4py.next`
DropD Feb 18, 2026
28fdaa2
fix typos in gtx, add failing external typing tests
DropD Feb 26, 2026
8681dec
fix typo in external typing CI
DropD Feb 26, 2026
3964075
Merge branch 'main' into explicit-fbuiltins-imports
DropD Feb 26, 2026
9854f2b
fix 'name-defined' mypy error for fbuiltins imported through gt4py.next
DropD Feb 26, 2026
7b1ed38
Merge branch 'main' into explicit-fbuiltins-imports
DropD Feb 27, 2026
e0e6c9f
fix 'arg-type' and 'call-overload' errors from using 'field_operator'
DropD Feb 27, 2026
02bc14d
add plugin to effectively ignore field dimension types
DropD Mar 2, 2026
ef038b8
Merge branch 'main' into explicit-fbuiltins-imports
DropD Mar 2, 2026
bcb960e
roll back experimental changes
DropD Mar 2, 2026
d7bb4a8
add more tests, partially fix 'where' type hints
DropD Mar 4, 2026
d56ce33
cleanup
DropD Mar 5, 2026
e9fdf85
fix type hints for program and scan_operator
DropD Mar 5, 2026
a0db128
add field ops and defer numeric precision type checking to dsl
DropD Mar 6, 2026
4c252e8
Merge branch 'main' into explicit-fbuiltins-imports
DropD Mar 6, 2026
da6aaf0
help mypy infer `astype` return type
DropD Mar 6, 2026
b9cce17
add a "default-tag" config for versioningit to get rid of NoTagError
DropD Mar 6, 2026
383a8e8
fix default-tag
DropD Mar 6, 2026
fa995be
make default tag conform to the vX.Y.Z convention
DropD Mar 6, 2026
564f98c
make external typing nox session call pytest with -sv
DropD Mar 6, 2026
3f55492
Merge branch 'main' into explicit-fbuiltins-imports
DropD Mar 9, 2026
d48e307
fix default tag interfering with installability
DropD Mar 9, 2026
415a435
edit default tag to indicate dev version (only used in shallow clones)
DropD Mar 10, 2026
c9ac562
Fix versioningit complaints
egparedes Mar 10, 2026
71ab1e1
Merge branch 'main' into explicit-fbuiltins-imports
DropD Mar 10, 2026
fc84bb0
replace Callable -> FunctionType casts with assert isinstance
DropD Mar 10, 2026
ed42283
added typing precision for field comparison ops
DropD Mar 10, 2026
82d25be
Merge branch 'build/fix-versioningit-complaints' into explicit-fbuilt…
DropD Mar 10, 2026
4e2a08e
experiment with default tag again
DropD Mar 10, 2026
e29bff0
get rid of local version info in default tag for now
DropD Mar 10, 2026
b9a2fde
static __all__ in fbuiltins, direct assert replaces test module
DropD Mar 10, 2026
5428507
remove need for attr-defined ignores for fbuiltins members
DropD Mar 10, 2026
725f3cc
experiment with removing extraneous local version info
DropD Mar 11, 2026
7399d4e
revert failed experiment
DropD Mar 11, 2026
fc0911f
rename "external typing" -> "typing exports"
DropD Mar 11, 2026
456bf81
use actual (non-any) dimension types while type checking
DropD Mar 11, 2026
abb72ca
[wip] fix dimension types
DropD Mar 11, 2026
17d5eef
Fix local version part
egparedes Mar 12, 2026
a529bbc
Merge branch 'main' into build/fix-versioningit-complaints
egparedes Mar 12, 2026
34ed14a
Update to current version
egparedes Mar 12, 2026
1180628
Fix unit test
egparedes Mar 12, 2026
043c2be
Fallback to a different strategy wrapping the versioningit calls to a…
egparedes Mar 12, 2026
5216972
mypy plugin: stop blocking variadic 'Dims' types
DropD Mar 12, 2026
264fef6
mypy plugin: give up on Dim types in case of error
DropD Mar 12, 2026
bf2f7aa
Merge branch 'build/fix-versioningit-complaints' into explicit-fbuilt…
DropD Mar 12, 2026
065ea19
mypy plugin: add a clarifying comment
DropD Mar 12, 2026
cec6dcc
Merge branch 'main' into explicit-fbuiltins-imports
egparedes Mar 12, 2026
239ac13
document mypy plugin, test gt4py.next exporting all public fbuiltins
DropD Mar 13, 2026
2e1422e
upgrade CI actions
DropD Mar 13, 2026
9889ed0
improve type hints and mypy plugin
DropD Mar 13, 2026
da20631
test for missing builtin functions in fbuiltins
DropD Mar 13, 2026
e527c29
fix typo in one of the typing export tests
DropD Mar 17, 2026
b3b2eac
Merge branch 'main' into explicit-fbuiltins-imports
DropD Mar 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ module = 'gt4py.next.iterator.*'
ignore_errors = true
module = 'gt4py.next.iterator.runtime'

[[tool.mypy.overrides]]
# mypy can not see through runtime logic in "fbuiltins"
disable_error_code = ["attr-defined"]
module = 'gt4py.next'

[[tool.mypy.overrides]]
ignore_missing_imports = true
implicit_reexport = true
Expand Down
54 changes: 52 additions & 2 deletions src/gt4py/next/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,58 @@
)
from .ffront import fbuiltins
from .ffront.decorator import field_operator, program, scan_operator
from .ffront.fbuiltins import * # noqa: F403 [undefined-local-with-import-star] explicitly reexport all from fbuiltins.__all__
from .ffront.fbuiltins import FieldOffset
from .ffront.fbuiltins import (
FieldOffset,
IndexType,
abs, # noqa: A004 # shadowing
arccos,
arccosh,
arcsin,
arcsinh,
arctan,
arctanh,
astype,
bool, # noqa: A004 # shadowing
broadcast,
cbrt,
ceil,
cos,
cosh,
exp,
float, # noqa: A004 # shadowing
float32,
float64,
floor,
fmod,
gamma,
int, # noqa: A004 # shadowing
int8,
int16,
int32,
int64,
isfinite,
isinf,
isnan,
log,
max_over,
maximum,
minimums,
neg,
neighbor_sum,
power,
sin,
sinh,
sqrt,
tan,
tanh,
trunc,
tuple, # noqa: A004 # shadowing
uint8,
uint16,
uint32,
uint64,
where,
)
from .otf.compiled_program import wait_for_compilation
from .program_processors.runners.gtfn import (
run_gtfn_cached as gtfn_cpu,
Expand Down
Loading