Comments (2)
So both the numpy and google docstrings have legacy formats where type are specified in the docstring and also modern ones where the type is in a 3.5-ish typehint.
I think the numpy style looks better. Also there's a smaller number of indents, which should be less trouble for programming.
from horton.
Sounds good. I'm just adding reference for those who are new to this.
- Type hinting: https://docs.python.org/3/library/typing.html
- Pragmatic introduction: https://blog.jetbrains.com/pycharm/2015/11/python-3-5-type-hinting-in-pycharm-5/
- A talk of Guido on the whyl: https://www.youtube.com/watch?v=2wDvzy6Hgxg
@matt-chan can you add links to a numpydoc spec with the type hinting?
from horton.
Related Issues (20)
- Macports Libxc release too aggresive HOT 1
- Rapid deployment to Github, PyPI and anaconda.org HOT 4
- Move coverage to codecov HOT 1
- Cannot install horton HOT 6
- Feature request: localization module HOT 5
- horton-2.1.0 does not install on latest fedora 26 & 27 HOT 27
- Conda install on Travis HOT 2
- cython error when building horton-2.1.0 on Mac OS High Sierra HOT 5
- Issues with Ubuntu 18.04 HOT 6
- GCC error when trying to install horton HOT 4
- Which new module for Atoms-in-Molecules analysis HOT 7
- Compilation error in cext.cpp HOT 1
- No module named cext HOT 1
- URL in 'About' section does not resolve HOT 2
- Computing atom-in-molecule electron densities
- Point-charge-interaction integrals for each point
- tar.gz is a tar
- The ordering of P orbitals for pure Gaussian functions HOT 6
- getting module error while using Horton package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from horton.