def __missing__(self, key): # Python does not allow to return assignment operation result directly new_value = self[key] = Buffer( key, self._user_options, any(x in DIAGNOSTIC_UI_ASYNC_FILETYPES for x in vimsupport.GetBufferFiletypes(key))) return new_value
def __missing__( self, key ): # Python does not allow to return assignment operation result directly new_value = self[ key ] = Buffer( key, self._user_options, vimsupport.GetBufferFiletypes( key ) ) return new_value
def _ApplyDiagnosticFilter(self, diags): filetypes = vimsupport.GetBufferFiletypes(self._bufnr) diag_filter = self._diag_filter.SubsetForTypes(filetypes) return filter(diag_filter.IsAllowed, diags)