The __repr__ has changed since Python 3.7 so we can not rely on it and we must use equality comparison.