Closed DareDevilDenis closed 2 months ago
On union fields, the parser attempts to parse every candidate class and the best candidate wins, but any warning are supposed to be suppressed.
Ahh excellent, catch_warnings is not threadsafe 🤦 https://docs.python.org/3.7/library/warnings.html#warnings.catch_warnings
Thanks for reporting @DareDevilDenis, excellent example!
The fix is on main!
And thank you @tefra for the quick fix! 👍
Using:
With the following script that repeatedly performs the same parse operation on different threads:
After a while we get the following warning:
Here are the files: ConverterWarning_issue.zip