Description
Summary
In #17926 code to validate hatches got added to the hatch module:
matplotlib/lib/matplotlib/hatch.py
Lines 182 to 196 in 5100378
and there's near identical code in rc validation that went in in #4686:
matplotlib/lib/matplotlib/rcsetup.py
Lines 580 to 592 in 5093150
They diverge slightly in that the hatch version has a deprecation warning but I think it should also apply to the rc version?
Proposed fix
Make the validation function in hatch.py the canonical validator and either deprecate the rcsetup validation function or turn it into a thin shim over the one in hatch.