Stop the `__virtualname__` deprecation warning. Fixes #8221.