From c3b243288d4b38170ee3c740c496dc71c642592f Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Thu, 9 Jul 2026 15:59:55 +0200 Subject: [PATCH] fix(checker): remove redundant instance check --- midas/checker/python.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/midas/checker/python.py b/midas/checker/python.py index 0192dfc..15f4b62 100644 --- a/midas/checker/python.py +++ b/midas/checker/python.py @@ -486,11 +486,10 @@ class PythonTyper( self._assign_sub(location, var, index, value_type) case _: - if not isinstance(target, p.VariableExpr): - self.logger.warning(f"Unsupported assignment to {target}") - self.reporter.warning( - target.location, f"Unsupported assignment to {target}" - ) + self.logger.warning(f"Unsupported assignment to {target}") + self.reporter.warning( + target.location, f"Unsupported assignment to {target}" + ) def _assign_var(self, location: Location, target: p.VariableExpr, value_type: Type): """Type check assignment to the given target