From aa6f70d27375dd4ac0f9af6e1653a9698e70a6ad Mon Sep 17 00:00:00 2001 From: rf_tar_railt <3165388245@qq.com> Date: Sat, 20 Jul 2024 01:36:28 +0800 Subject: [PATCH] :bug: version 0.7.6 specify recursive_guard as kwarg in FutureRef._evaluate --- nepattern/base.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nepattern/base.py b/nepattern/base.py index 327dc18..c7ec41f 100644 --- a/nepattern/base.py +++ b/nepattern/base.py @@ -386,7 +386,7 @@ def match(self, input_: Any): if sys.version_info < (3, 9): # pragma: no cover origin = self.ref._evaluate(_main.__dict__, _main.__dict__) else: # pragma: no cover - origin = self.ref._evaluate(_main.__dict__, _main.__dict__, frozenset()) # type: ignore + origin = self.ref._evaluate(_main.__dict__, _main.__dict__, recursive_guard=frozenset()) # type: ignore if not isinstance(input_, origin): # type: ignore raise MatchFailed( lang.require("nepattern", "type_error").format( diff --git a/pyproject.toml b/pyproject.toml index 280f0d7..4b8b84b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nepattern" -version = "0.7.5" +version = "0.7.6" description = "a complex pattern, support typing" authors = [ {name = "RF-Tar-Railt", email = "rf_tar_railt@qq.com"},