commit: 1d9d97730296592af42f61e3660601a61e9a632b
Author: Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Fri Jan 30 11:10:20 2026 +0000
Commit: Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Fri Jan 30 11:10:26 2026 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=1d9d9773
slot combine_metaclass result
If the parent layers aren't slotted, this has no impact; if they
are, then this fies the unnecessary addition of a instance dict.
Signed-off-by: Brian Harring <ferringb <AT> gmail.com>
src/snakeoil/klass/util.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/snakeoil/klass/util.py b/src/snakeoil/klass/util.py
index 3a85f32..fb533f7 100644
--- a/src/snakeoil/klass/util.py
+++ b/src/snakeoil/klass/util.py
@@ -180,7 +180,7 @@ def combine_metaclasses(kls: type, *extra: type) -> type:
return kls
class combined(*klses):
- pass
+ __slots__ = ()
combined.__name__ = f"combined_{'_'.join(kls.__qualname__ for kls in
klses)}"
return combined