Join GitHub today
Preserve metaclass when slots=True #155
@@ Coverage Diff @@ ## master #155 +/- ## ===================================== Coverage 100% 100% ===================================== Files 8 8 Lines 551 551 Branches 122 122 ===================================== Hits 551 551
LGTM. It's a simple change, instead of assuming the metaclass of the class we're changing is
type, first fetch the metaclass with the
type() builtin, then use that.
The docs are failing because of the logo (Warning, treated as error:
CHANGELOG.rst:None: WARNING: nonlocal image URI found: https://attrs.readthedocs.io/en/latest/_static/attrs_logo.png), so it's unrelated.