aiidateam / aiida-core

The official repository for the AiiDA code
https://aiida-core.readthedocs.io
Other
436 stars 189 forks source link

Change type_check to a decorator #4500

Open chrisjsewell opened 4 years ago

chrisjsewell commented 4 years ago

Now that we are using typing, we could replace aiida/common/lang.py::type_check with a decorator, to test against the types.

Something like this: https://github.com/prechelt/typecheck-decorator

chrisjsewell commented 4 years ago

not sure if we want to use this (requiring an extra dependency which maybe isn't that well maintained) or write our own (requiring a bit more maintenance on our part)