From c4b2e2a9008c28c55f1e224692aee3f9c31f8700 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sat, 6 Aug 2022 00:45:49 +0200 Subject: [PATCH] Remove noop setattr_cm. Followup to 43bff96. --- lib/matplotlib/patches.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 8a8b2e2db509..0c893aac3aaf 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -586,9 +586,7 @@ def draw(self, renderer): # docstring inherited if not self.get_visible(): return - - with cbook._setattr_cm(self, _dash_pattern=(self._dash_pattern)), \ - self._bind_draw_path_function(renderer) as draw_path: + with self._bind_draw_path_function(renderer) as draw_path: path = self.get_path() transform = self.get_transform() tpath = transform.transform_path_non_affine(path)