[Python-checkins] GH-104584: Fix incorrect uoperands (GH-107513)