changeset 103:f05ae21c67c6

minor types and logs
author drewp@bigasterisk.com
date Mon, 30 May 2022 20:36:38 -0700
parents 0f921dd06887
children d1fd6aeffb27
files rdfdb/syncedgraph/autodepgraphapi.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):