178
181
"""A single hook that clients can register to be called back when it fires.
180
183
:ivar name: The name of the hook.
181
185
:ivar introduced: A version tuple specifying what version the hook was
182
186
introduced in. None indicates an unknown version.
183
187
:ivar deprecated: A version tuple specifying what version the hook was
184
188
deprecated or superseded in. None indicates that the hook is not
185
189
superseded or deprecated. If the hook is superseded then the doc
186
190
should describe the recommended replacement hook to register for.
190
193
def __init__(self, name, doc, introduced, deprecated):