def _maybePostUnjelly(self, unjellied):
        """
        If the given object has support for the C{postUnjelly} hook, set it up
        to be called at the end of deserialization.

        @param unjellied: an object that has already been unjellied.

        @return: C{unjellied}
        """
        if hasattr(unjellied, 'postUnjelly'):
            self.postCallbacks.append(unjellied.postUnjelly)
        return unjellied

        If the given object has support for the C{postUnjelly} hook, set it up
        to be called at the end of deserialization.

        @param unjellied: an object that has already been unjellied.

        @return: C{unjellied}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/jelly.py