Snakemake version
Since 8.23.0
Describe the bug
Ever since #3140 (released in 8.23.0), changing the python code inside a rule doesn't trigger snakemake to rerun the rule. I've reverted to 8.22.0 because I heavily rely on that feature. That PR claims serializing python code consistently across python versions is an unsolved problem. Perhaps the approaches used here or here could be employed to bring back support for automatic changes detection?