info
to be None
if the function uses if info
at the top? (2) In Python, it's if info is not None:
not if info:
. (3) if slug
and elif name
looks weird; is only one present in self._info
? (4) Just return obj
, the if obj
is currently redundant. — ChrisP 54 secs ago