__slots__ is a way to specify a fixed set of attributes for a class, which can help to save memory in certain situations.