Replace Thread.setDaemon() with Thread.daemon = ...

Proprietary

Replace setDaemon() method calls with daemon property assignment. Deprecated in Python 3.10. Only fires where the receiver's type resolves to threading.Thread or a subclass, and only on a call that is its own statement and passes its value positionally.

org.openrewrite.python.migrate.ReplaceThreadSetDaemon
mod run . --recipe=org.openrewrite.python.migrate.ReplaceThreadSetDaemon

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.