debug_toolbar/panels/cache.py
def current_instance(cls):
        """
        Return the currently enabled CachePanel instance or None.

        If a request is in process with a CachePanel enabled, this will return that
        panel (based on the current thread or async task).  Otherwise it will return
        None.
        """
        return getattr(cls._context_locals, "current_instance", None)

        Return the currently enabled CachePanel instance or None.

        If a request is in process with a CachePanel enabled, this will return that
        panel (based on the current thread or async task).  Otherwise it will return
        None.
        
Return the currently enabled CachePanel instance or None.
If a request is in process with a CachePanel enabled, this will return that
panel (based on the current thread or async task).  Otherwise it will return
None.
Return the currently enabled CachePanel instance or None . If a request is in process with a CachePanel enabled this will return that panel ( based on the current thread or async task ) . Otherwise it will return None .
def current_instance(cls):
        return getattr(cls._context_locals, "current_instance", None)
def current_instance ( cls ) : return getattr ( cls . _context_locals , "current_instance" , None )
Return the currently enabled CachePanel instance or None.
Return the currently enabled CachePanel instance or None .
"""
        Return the currently enabled CachePanel instance or None.

        If a request is in process with a CachePanel enabled, this will return that
        panel (based on the current thread or async task).  Otherwise it will return
        None.
        """
cls