Or maybe it can just call __invert__ (magic method for ~ operator) for you ...
Currently, if you do class Foo(Fields.foo.bar): pass then everything is fine, but if you do Foo = Fields.foo.bar then it's not really fine, because Fields.foo.bar is still "unsealed"
In that situation you can do Foo = ~Fields.foo.bar to force the "seal"
Or maybe it can just call
__invert__
(magic method for~
operator) for you ...Currently, if you do
class Foo(Fields.foo.bar): pass
then everything is fine, but if you doFoo = Fields.foo.bar
then it's not really fine, becauseFields.foo.bar
is still "unsealed"In that situation you can do
Foo = ~Fields.foo.bar
to force the "seal"