Installing wireshark pulls python2 as a dependency via wireshark-cli. Searching for why this dependency is necessary i found 2 scripts, wireshark_be.py and wireshark_gen.py installed on site-packages. The only use i could find of these files is within the idl2wrs bash script [1], which is NOT included in the fedora package. If this is true, and there are not other uses for this python2 code, i think these scripts should not be included, as this adds the python2 dependency. [1] https://www.wireshark.org/docs/man-pages/idl2wrs.html
Grepping the source code i can confirm that these file are only used in the removed idl2wrs script (and there are other references in documentation and Makefile). Looking at other distros, the Arch linux packages don't depend on python2, while the only Debian sub-package with python2 dependency is wireshark-dev, which contains the mentioned files, idl2wrs, and 2 other scripts [1] (also not included by fedora) [1] https://packages.debian.org/sid/amd64/wireshark-dev/filelist
Fixed in current rawhide version.