diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-11-09 09:13:44 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-11-09 15:02:29 -0500 |
| commit | ebb54e80a5a52d0cce4cba1abc21c707a42c2c73 (patch) | |
| tree | a72c7d810cffc60cd85d5c7118759ef6be8dae40 /lib/sqlalchemy/orm/bulk_persistence.py | |
| parent | 8745dcf3e167a68c4665255716eefe138c89a8d2 (diff) | |
| download | sqlalchemy-ebb54e80a5a52d0cce4cba1abc21c707a42c2c73.tar.gz | |
try to support mypy 0.990
mypy introduces a crash we need to work around, also
some new rules. It also has either a behavioral change
regarding how output is rendered in relationship to
files being within sys.path or not, so work around
that for test_mypy_plugin_py3k.py
References: https://github.com/python/mypy/issues/14027
Change-Id: I689c7fe27dc52abee932de9e0fb23b2a2eba76fa
Diffstat (limited to 'lib/sqlalchemy/orm/bulk_persistence.py')
| -rw-r--r-- | lib/sqlalchemy/orm/bulk_persistence.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/bulk_persistence.py b/lib/sqlalchemy/orm/bulk_persistence.py index 651533db6..cfe488003 100644 --- a/lib/sqlalchemy/orm/bulk_persistence.py +++ b/lib/sqlalchemy/orm/bulk_persistence.py @@ -885,10 +885,12 @@ class BulkUDCompileState(ORMDMLState): if crit: eval_condition = evaluator_compiler.process(*crit) else: - - def eval_condition(obj): + # workaround for mypy https://github.com/python/mypy/issues/14027 + def _eval_condition(obj): return True + eval_condition = _eval_condition + return eval_condition @classmethod |
