suppress_deprecations¶
-
lsst.utils.suppress_deprecations(category=<class 'FutureWarning'>)¶ Suppress warnings generated by
deprecated.sphinx.deprecated.Naively, one might attempt to suppress these warnings by using
catch_warnings. However,deprecatedattempts to install its own filter, overriding that. This convenience method works around this and properly suppresses the warnings by providing a mocksimplefilterfordeprecatedto call.Parameters: - category :
Warningor subclass The category of warning to suppress.
- category :