https://github.com/GPflow/GPflow
Revision 0bf75f76f64fe58339ec9ef463c79fcf81d379da authored by st-- on 29 January 2019, 11:27:39 UTC, committed by GitHub on 29 January 2019, 11:27:39 UTC
The AutoBuild metaclass that is present in all Parameterized subclasses (e.g. models, kernels, likelihoods etc.) overwrote the `__init__` function and thereby replaced the signature with `*args, **kwargs`, which meant that the API documentation and command-line/IDE auto-completion was broken. This PR makes use of the "decorator" package (slightly hacked) to restore the original signatures (while allowing autobuild to still be passed as an additional keyword argument).
1 parent 5166d0f
History
Tip revision: 0bf75f76f64fe58339ec9ef463c79fcf81d379da authored by st-- on 29 January 2019, 11:27:39 UTC
Fix AutoBuild metaclass to not screw up method signatures (#907)
Tip revision: 0bf75f7
File Mode Size
__init__.py -rw-r--r-- 59 bytes
conftest.py -rw-r--r-- 39 bytes
reference.py -rw-r--r-- 2.0 KB
test_actions.py -rw-r--r-- 1.8 KB
test_autoflow.py -rw-r--r-- 6.1 KB
test_broadcasting.py -rw-r--r-- 2.8 KB
test_conditionals.py -rw-r--r-- 6.0 KB
test_config.py -rw-r--r-- 4.9 KB
test_core.py -rw-r--r-- 1.2 KB
test_coregion.py -rw-r--r-- 7.3 KB
test_data_object.py -rw-r--r-- 6.1 KB
test_dataholders.py -rw-r--r-- 8.5 KB
test_expectations.py -rw-r--r-- 11.8 KB
test_features.py -rw-r--r-- 4.2 KB
test_gplvm.py -rw-r--r-- 3.7 KB
test_hmc.py -rw-r--r-- 7.0 KB
test_kerns.py -rw-r--r-- 18.7 KB
test_kldiv.py -rw-r--r-- 5.9 KB
test_likelihoods.py -rw-r--r-- 23.9 KB
test_logdensities.py -rw-r--r-- 1.8 KB
test_mean_functions.py -rw-r--r-- 16.4 KB
test_method_equivalence.py -rw-r--r-- 9.6 KB
test_methods.py -rw-r--r-- 11.1 KB
test_misc.py -rw-r--r-- 5.6 KB
test_model.py -rw-r--r-- 9.3 KB
test_monitor.py -rw-r--r-- 28.2 KB
test_multioutput.py -rw-r--r-- 21.9 KB
test_multioutput_features.py -rw-r--r-- 2.4 KB
test_notebooks.py -rw-r--r-- 2.9 KB
test_optimizers.py -rw-r--r-- 17.6 KB
test_param.py -rw-r--r-- 44.3 KB
test_predict.py -rw-r--r-- 6.0 KB
test_priors.py -rw-r--r-- 6.6 KB
test_profiling.py -rw-r--r-- 3.5 KB
test_quadrature.py -rw-r--r-- 2.4 KB
test_saver.py -rw-r--r-- 5.9 KB
test_scaled_euclid_dist.py -rw-r--r-- 1.9 KB
test_session.py -rw-r--r-- 3.5 KB
test_transforms.py -rw-r--r-- 11.1 KB
test_triang.py -rw-r--r-- 2.8 KB
test_uncertain_conditional.py -rw-r--r-- 9.5 KB
test_variational.py -rw-r--r-- 8.3 KB

back to top