From 5bdab6e1f4d896c251270fdbe6efe77120670500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 16 Aug 2023 17:24:33 +0200 Subject: [PATCH 5/7] Revert "Add in docstring intro for `validate(...)`" This reverts commit da39566c2c379888991e4eb1dae95d917e13db8a. --- numexpr/necompiler.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/numexpr/necompiler.py b/numexpr/necompiler.py index 37052acadb..f846c1d23d 100644 --- a/numexpr/necompiler.py +++ b/numexpr/necompiler.py @@ -772,10 +772,7 @@ def validate(ex: str, _frame_depth: int = 2, **kwargs) -> Optional[Exception]: """ - Validate a NumExpr expression with the given `local_dict` or `locals()`. - Returns `None` on success and the Exception object if one occurs. Note that - you can proceed directly to call `re_evaluate()` if you use `validate()` - to sanitize your expressions and variables in advance. + Returns Parameters ----------