Skip to content

Commit

Permalink
Work around a problem registering MaskX
Browse files Browse the repository at this point in the history
in TemplateMeta.register. The problem only showed up for MaskX
because that was the only subclass registered with non-None
`TEMPLATE_DEFAULTS`
  • Loading branch information
r-owen committed Sep 11, 2018
1 parent f445a05 commit 28adf19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/utils/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def register(self, key, subclass):
# methods must be transfered to the ABC as a bound method
# so that the correct cls be called with the class method
for name in subclass.__dict__:
if name == "__new__":
if name in ("__new__", "__init_subclass__"):
continue
obj = subclass.__dict__[name]
# copy over the static methods
Expand Down

0 comments on commit 28adf19

Please sign in to comment.