(self, key: 'TV_DepID')
return None
Get a value from the cache.

        If there is no cache entry then None will be returned.
Get a value from the cache.
Get a value from the cache .
def get(self, key: 'TV_DepID') -> T.Optional['dependencies.Dependency']:
        """Get a value from the cache.

        If there is no cache entry then None will be returned.
        """
        try:
            val = self.__cache[key]
        except KeyError:
            return None

        for t in val.types:
            subkey = self.__calculate_subkey(t)
            try:
                return val[subkey]
            except KeyError:
                pass
        return None
def get ( self , key : 'TV_DepID' ) -> T . Optional [ 'dependencies.Dependency' ] : try : val = self . __cache [ key ] except KeyError : return None for t in val . types : subkey = self . __calculate_subkey ( t ) try : return val [ subkey ] except KeyError : pass return None