def threadLocalStackPushClassFor_(t):
    """Given 'T', figure out which class actually descended directly from ThreadLocalStackPushable.

    This allows us to define a base class and some subclasses and have all of the subclasses be
    looked up by the interface"""

    if type not in threadLocalStackPushableDescendents_:
        threadLocalStackPushableDescendents_[t] = computeThreadLocalStackPushClassFor_(t)

    return threadLocalStackPushableDescendents_[t]
dataset/ETHPy150Open ufora/ufora/ufora/util/ThreadLocalStack.py/threadLocalStackPushClassFor_/original