A bunch of stuff still depends on python2-scandir in F30 Rawhide...I just got a bunch of emails about broken package dependencies for: python-wxpython4 python-suds python-pytest-xdist python-pytest-forked python-pytest-timeout I think you need to put python2-scandir back in for F30 for now.
python2-scandir is a dependency of python2-pytest so I imagine it's going to be a long time before it's a leaf package that can be removed. The list of packages suitable for removal can be found here: https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal/List python2-scandir is in the list of those that can be removed when nothing else depends on it, which is not yet the case.
Sorry, guess I jumped the gun. Just did a new rawhide build. Pushed python2-scandir retirement to 31 (for now) so the logic could be preserved.