1. Georg Brandl
  2. sphinx
  3. Pull requests

Pull requests

#184 Merged at 9222476
Repository
sphinx2
Branch
default
Repository
sphinx
Branch
default

autodoc extension: add autodoc_mock_imports config value

Comments (4)

  1. Daniel Chianucci

    Would it be possible to make the returned object instance use an init method which takes args and kwargs?
    Something along the lines of

    def blank_fn(cls, args, *kwargs): pass

    ... mocktype=type(name,(),{}) mocktype.module = name mocktype.init=blank_fn