Adjust warning exclusions for Python 3.10