diff options
Diffstat (limited to 'sphinx/util/docutils.py')
-rw-r--r-- | sphinx/util/docutils.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py index cdf5f2e19..aa0b737eb 100644 --- a/sphinx/util/docutils.py +++ b/sphinx/util/docutils.py @@ -398,16 +398,7 @@ class SphinxTranslator(nodes.NodeVisitor): super(SphinxTranslator, self).__init__(document) self.builder = builder self.config = builder.config - - def get_settings(self): - # type: () -> Any - """Get settings object with type safe. - - .. note:: It is hard to check types for settings object because it's attributes - are added dynamically. This method avoids the type errors through - imitating it's type as Any. - """ - return self.document.settings + self.settings = document.settings # cache a vanilla instance of nodes.document |