Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d2bed51

Browse files
committed
Defer enforcement of hatch validation
We want to wait until an official API is available to define custom hatches. One can currently add custom patches via monkeypatching, which would be prevented by the hatch validation: #20690 (comment)
1 parent c12791c commit d2bed51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/hatch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def _validate_hatch_pattern(hatch):
188188
invalids = ''.join(sorted(invalids))
189189
_api.warn_deprecated(
190190
'3.4',
191+
removal='3.7', # one release after custom hatches (#20690)
191192
message=f'hatch must consist of a string of "{valid}" or '
192193
'None, but found the following invalid values '
193194
f'"{invalids}". Passing invalid values is deprecated '

0 commit comments

Comments
 (0)