3 ms·
I've had the same problem with pydantic. Currently, properties are special cased and moved to the top. Everything else, including classes, is grouped with met
by bwhmather 5y ago
I've had the same problem with pydantic. Currently, properties are special cased and moved to the top. Everything else, including classes, is grouped with methods. Meta classes will end up somewhere in the middle, which is probably the worst possible case.
SSort is currently used for several hundred kilobytes of python so I'm wary, but if I'm going to make a breaking change before 1.0 then I think this is likely to be it.
- bwhmather 5y agoBy the way, I have raised a ticket to finalize method order before 1.0 release (https://github.com/bwhmather/ssort/issues/11 https://github.com/bwhmather/ssort/issues/11). Please follow and comment if you would like to see a change.