TST: Test for the Enum triggering TypeError (#22551 issue)
- [x] closes #22551


Hello @Shadimrad! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:



There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: 

##### Comment last updated at 2022-07-16 02:19:24 UTC I believe it's done! @mroeschke  Thanks, great job @Shadimrad! 