# HG changeset patch # User drewp@bigasterisk.com # Date 1653968198 25200 # Node ID f05ae21c67c6d30fb0cf04d84bf535fc048e7e0a # Parent 0f921dd06887a91de03397bd2166221919609222 minor types and logs diff -r 0f921dd06887 -r f05ae21c67c6 rdfdb/syncedgraph/autodepgraphapi.py --- a/rdfdb/syncedgraph/autodepgraphapi.py Mon May 30 20:33:50 2022 -0700 +++ b/rdfdb/syncedgraph/autodepgraphapi.py Mon May 30 20:36:38 2022 -0700 @@ -4,6 +4,7 @@ from rdfdb.syncedgraph.currentstategraphapi import \ contextsForStatementNoWildcards from rdfdb.syncedgraph.syncedgraph_base import SyncedGraphBase +from rdfdb.patch import Patch from rdflib import RDF, RDFS, URIRef log = logging.getLogger('autodepgraphapi') @@ -61,14 +62,14 @@ self.currentFuncs.pop() log.debug('graph.currentFuncs pop %s. stack now has %s', func, len(self.currentFuncs)) - def runDepsOnNewPatch(self, p): + def runDepsOnNewPatch(self, p: Patch): """ patch p just happened to the graph; call everyone back who might care, and then notice what data they depend on now """ for func in self._watchers.whoCares(p): # todo: forget the old handlers for this func - log.debug('runDepsOnNewPatch calling watcher %s', p) + log.debug('runDepsOnNewPatch calling watcher %s', p.shortSummary()) self.addHandler(func) def _getCurrentFunc(self):