From 3b113b09961be655d647303c2290a6a5359cddb0 Mon Sep 17 00:00:00 2001 From: pwwang <1188067+pwwang@users.noreply.github.com> Date: Wed, 29 Nov 2023 05:24:08 +0000 Subject: [PATCH] Fix type hint for sourcefile parameter --- varname/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varname/helpers.py b/varname/helpers.py index 2da9fa1..98ef8d7 100644 --- a/varname/helpers.py +++ b/varname/helpers.py @@ -229,7 +229,7 @@ def exec_code( globals: Dict[str, Any] = None, locals: Dict[str, Any] = None, /, - sourcefile: PathLike = None, + sourcefile: PathLike | str = None, frame: int = 1, ignore: IgnoreType = None, **kwargs: Any,