From 1a16642ad9fb7c1361f1b3640538fc0a71d2736e Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Wed, 2 Aug 2023 23:58:14 -0500 Subject: [PATCH] Remove deprecated pass-dict-as-loopy-options --- pytato/target/loopy/codegen.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pytato/target/loopy/codegen.py b/pytato/target/loopy/codegen.py index 7c114d2..bd17d67 100644 --- a/pytato/target/loopy/codegen.py +++ b/pytato/target/loopy/codegen.py @@ -1045,13 +1045,6 @@ def generate_loopy(result: Union[Array, DictOfNamedArrays, Dict[str, Array]], if options is None: options = lp.Options(return_dict=result_is_dict) - elif isinstance(options, dict): - from warnings import warn - warn("Passing a dict for options is deprecated and will stop working in " - "2022. Pass an actual loopy.Options object instead.", - DeprecationWarning, stacklevel=2) - options = lp.Options(**options) - if options.return_dict != result_is_dict: raise ValueError("options.return_dict is expected to match " "whether the returned value is a dictionary") -- GitLab