from sphinx.locale import l_
from sphinx.util.docfields import Field

def setup(app):
    app.add_object_type('configtrait', 'configtrait', objname='Config option')
    metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
    return metadata



def setup(app):
    app.add_object_type('configtrait', 'configtrait', objname='Config option')
    metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
    return metadata

Fix compatibility with the latest release of Sphinx
Fix compatibility with the latest release of Sphinx

`l_` from sphinx.locale has been deprecated for a long time.
`_` is the new name for the same function but it seems that the
imports there are useless.

https://github.com/sphinx-doc/sphinx/commit/8d653a406dc0dc6c2632176ab4757ca15474b10f

+ 
- from sphinx.locale import l_
- from sphinx.util.docfields import Field
  
  def setup(app):
      app.add_object_type('configtrait', 'configtrait', objname='Config option')
      metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
      return metadata
  
Fix compatibility with the latest release of Sphinx
## Code Before:
from sphinx.locale import l_
from sphinx.util.docfields import Field

def setup(app):
    app.add_object_type('configtrait', 'configtrait', objname='Config option')
    metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
    return metadata

## Instruction:
Fix compatibility with the latest release of Sphinx
## Code After:


def setup(app):
    app.add_object_type('configtrait', 'configtrait', objname='Config option')
    metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
    return metadata
