From a6c2e7897a5eb82bf8187e3d6e917b7bd4d3db73 Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 3 Dec 2019 09:15:07 +0000 Subject: [PATCH] Clean up --- evering/eval.py | 21 --------------------- mypy.ini | 1 - 2 files changed, 22 deletions(-) delete mode 100644 evering/eval.py diff --git a/evering/eval.py b/evering/eval.py deleted file mode 100644 index 26e8fa1..0000000 --- a/evering/eval.py +++ /dev/null @@ -1,21 +0,0 @@ -""" -This module contains helper functions for evaluating python code and -managing local variables. -""" - -import copy -import types -from typing import Any, Dict - -__all__ = ["copy_local_variables"] - -def copy_local_variables(local: Dict[str, Any]) -> Dict[str, Any]: - local_copy = {} - - for key, value in local: - if isinstance(value, types.ModuleType): - local_copy[key] = value - else: - local_copy[key] = copy.deepcopy(value) - - return local_copy diff --git a/mypy.ini b/mypy.ini index 9adf49a..6fd0e6a 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2,4 +2,3 @@ disallow_untyped_defs = True disallow_incomplete_defs = True no_implicit_optional = True -ignore_missing_imports = True