What is the difference between Python registered classes (virtual subclasses) and inherited classes? Why should there be a registered class?

what"s the difference between the following two ways? What is the use of XXX.register compared to inheritance?

@UVW.register
class XYZ(...):
    pass
    
class XYZ(UVW):
    pass
Mar.03,2021

the first is a virtual subclass, which does not inherit any methods or properties from the parent class after registration, so it is called a virtual subclass

.

the second is inheritance, which inherits the things of the parent class

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-493022f-18904.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-493022f-18904.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?