I believe this is a problem with the import_object mechanism, for some function in example_variants.py, if you have:
from variants import primary
@primary
def func(a, b):
"""The primary function"""
@func.variant('onearg')
def func(a):
"""A variant with only one argument"""
And you create a document like so:
=======
Example
=======
.. autovariant_function:: example_variants.func.onearg
You'll get an error failing to import example_variants.func.onearg.
I believe this is a problem with the
import_objectmechanism, for some function inexample_variants.py, if you have:And you create a document like so:
You'll get an error failing to import
example_variants.func.onearg.