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,