<!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** `pydoc matplotlib.patches` emits many warnings about the deprecation of `validJoin` and `validCap`. attn @brunobeltran, I guess. **Code for reproduction** **Actual outcome** Per the above. **Expected outcome** No warning **Matplotlib version** <!--Please specify your platform and versions of the relevant libraries you are using:--> * Operating system: * Matplotlib version: master * Matplotlib backend (`print(matplotlib.get_backend())`): * Python version: 39 * Jupyter version (if applicable): * Other libraries: <!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--> <!--If you installed from conda, please specify which channel you used if not the default--> ----- I guess a solution would be to add a check in `_deprecated_property.__get__` to silence the warning if `sys.argv[0] == pydoc.__file__`.