On macOS Big Sur I get this message when I execute a python program that uses Qt via pyside2:
ApplePersistenceIgnoreState: Existing state will not be touched.
New state will be written to /var/folders/t_/
9rk7d4yn7jq0vrv1j50p541w0000gn/T/org.python.python.savedState
Cocoa (inherited from AppKit) supports a way for applications to restore state when relaunched. The user default ApplePersistenceIgnoreState
enables and disables the restore behavior with values YES/NO. To suppress the message, set ApplePersistenceIgnoreState to NO
Notice the phrase org.python.python
in the message. You need this to supress the message:
defaults write org.python.python ApplePersistenceIgnoreState NO
defaults write org.python.python ApplePersistenceIgnoreState YES