From 50bdea2bfaf4d4b34cdd03c88e5490eb94904e05 Mon Sep 17 00:00:00 2001 From: DropD Date: Fri, 19 Apr 2024 09:51:22 +0200 Subject: [PATCH] todos for linting step calls in decorator wrappers --- src/gt4py/next/ffront/decorator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gt4py/next/ffront/decorator.py b/src/gt4py/next/ffront/decorator.py index bab7123a80..860e71a2a8 100644 --- a/src/gt4py/next/ffront/decorator.py +++ b/src/gt4py/next/ffront/decorator.py @@ -104,6 +104,7 @@ def past_stage(self): return self.backend.transforms_prog.func_to_past(self.definition_stage) return next_backend.DEFAULT_PROG_TRANSFORMS.func_to_past(self.definition_stage) + # TODO(ricoh): linting should become optional, up to the backend. def __post_init__(self): if self.backend is not None and self.backend.transforms_prog is not None: self.backend.transforms_prog.past_lint(self.past_stage) @@ -224,6 +225,7 @@ def __call__(self, *args, offset_provider: dict[str, Dimension], **kwargs): ppi.ensure_processor_kind(self.backend.executor, ppi.ProgramExecutor) self.backend(self.past_stage, *args, **(kwargs | {"offset_provider": offset_provider})) + # TODO(ricoh): linting should become optional, up to the backend. def __post_init__(self): if self.backend is not None and self.backend.transforms_prog is not None: self.backend.transforms_prog.past_lint(self.past_stage) @@ -399,6 +401,7 @@ def from_function( backend=backend, ) + # TODO(ricoh): linting should become optional, up to the backend. def __post_init__(self): """This ensures that DSL linting occurs at decoration time.""" _ = self.foast_stage