delay_doc_updates[source] [edit on github]

Contextmanager to disable documentation updates when registering reader and writer. The documentation is only built once when the contextmanager exits.

New in version 1.3.


cls : class

Class for which the documentation updates should be delayed.


Registering mutliple readers and writers can cause significant overhead because the documentation of the corresponding read and write methods are build every time.


This contextmanager is experimental and may be replaced by a more general approach.


see for example the source code of astropy.table.__init__.