funsor icon indicating copy to clipboard operation
funsor copied to clipboard

Replace init-only metaclasses with __init_subclass__ method

Open eb8680 opened this issue 4 years ago • 0 comments

~~Blocked by #370~~

There are a few places in Funsor where we use metaclasses that only implement an __init__ method, e.g. StatefulIntepretationMeta added in #369. We should remove these at some point after Python 3.5 support is dropped and replace them with __init_subclass__ methods on the corresponding classes.

List of cases:

  • [ ] StatefulInterpretationMeta
  • others?

eb8680 avatar Sep 28 '20 17:09 eb8680