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
.circleci
.github
doc
gpflow
tests
.coveragerc -rw-r--r-- 286 bytes
.gitignore -rw-r--r-- 811 bytes
.pylintrc -rw-r--r-- 14.6 KB
Dockerfile -rw-r--r-- 1.1 KB
LICENSE -rw-r--r-- 11.1 KB
MANIFEST.in -rw-r--r-- 166 bytes
README.md -rw-r--r-- 6.3 KB
RELEASE.md -rw-r--r-- 7.7 KB
codecov.yml -rw-r--r-- 268 bytes
contributing.md -rw-r--r-- 7.3 KB
docs_require.txt -rw-r--r-- 323 bytes
notebooks l--------- 21 bytes
pytest.ini -rw-r--r-- 33 bytes
roadmap.md -rw-r--r-- 506 bytes
setup.py -rw-r--r-- 2.3 KB

README.md

back to top