Skip to content

Commit bf9a451

Browse files
authored
Merge pull request #23567 from anntzer/nscm
Remove noop setattr_cm.
2 parents d7ffff2 + c4b2e2a commit bf9a451

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/patches.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,9 +586,7 @@ def draw(self, renderer):
586586
# docstring inherited
587587
if not self.get_visible():
588588
return
589-
590-
with cbook._setattr_cm(self, _dash_pattern=(self._dash_pattern)), \
591-
self._bind_draw_path_function(renderer) as draw_path:
589+
with self._bind_draw_path_function(renderer) as draw_path:
592590
path = self.get_path()
593591
transform = self.get_transform()
594592
tpath = transform.transform_path_non_affine(path)

0 commit comments

Comments
 (0)