MCPcopy
hub / github.com/psycopg/psycopg / remove_notice_handler

Method remove_notice_handler

psycopg/psycopg/_connection_base.py:331–338  ·  view source on GitHub ↗

Unregister a notice message callable previously registered. :param callback: the callback to remove. :type callback: Callable[[~psycopg.errors.Diagnostic], None]

(self, callback: NoticeHandler)

Source from the content-addressed store, hash-verified

329 self._notice_handlers.append(callback)
330
331 def remove_notice_handler(self, callback: NoticeHandler) -> None:
332 """
333 Unregister a notice message callable previously registered.
334
335 :param callback: the callback to remove.
336 :type callback: Callable[[~psycopg.errors.Diagnostic], None]
337 """
338 self._notice_handlers.remove(callback)
339
340 @staticmethod
341 def _notice_handler(

Callers 2

test_notice_handlersFunction · 0.80
test_notice_handlersFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_notice_handlersFunction · 0.64
test_notice_handlersFunction · 0.64