From 74ce79ba8fd5004236ad6137ea034be6789d952b Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Wed, 19 Oct 2016 12:11:30 -0700 Subject: [PATCH] Add inspection exception to ignore reassignment of self --- eos/saveddata/fit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eos/saveddata/fit.py b/eos/saveddata/fit.py index 3282edf20..36c2f8d13 100644 --- a/eos/saveddata/fit.py +++ b/eos/saveddata/fit.py @@ -480,6 +480,8 @@ class Fit(object): if self == targetFit: copied = self # original fit shadow = True + # Don't inspect this, we genuinely want to reassign self + # noinspection PyMethodFirstArgAssignment self = copy.deepcopy(self) self.fleet = copied.fleet logger.debug("Handling self projection - making shadow copy of fit. %r => %r", copied, self)