Releases: FelixTheC/strongtyping
Releases · FelixTheC/strongtyping
v2.1.0
v2.0.2
v2.0.1
v2.0.0
Beta
Alpha release for new feature
New decorators for adding docstring infos from typing
- from docs_from_typing import
- rest_docs_from_typing
- numpy_docs_from_tying
from docs_from_typing import numpy_docs_from_typing
@numpy_docs_from_typing
def foo(val: int, /, *, val_a: Optional[str] = "foo") -> int:
return val ** 2
if __name__ == '__main__':
print(help(foo))
will give
foo(val: int, /, *, val_a: Union[str, NoneType] = 'foo') -> int
Function foo
Parameters
----------
val : postional only argument of type int
val_a : keyword only argument of type str or NoneType
Default is foo
Returns
-------
int
v1.7.0
v1.6.4
#46 integrate strongtyping modules (#48) * [FIX] issues with properties inside of classes * [UPD] version * [FIX] class decorator return class not function * [UPD] separate code into two files * [UPD] use latest py-version * [UPD] install strongtyping_modules when exists directly * [UPD] workflow name * [CRE] tox setup * [UPD] typed_namedtuple available from version 3.8 * [UPD] typed_namedtuple available from version 3.8 * [UPD] information new features * [UPD] information new features * [UPD] check empty arg arguments & exclude dict from strongtyping_module * [UPD] refactoring * Merge: master into branch * [UPD] create own install function * [FIX] import issue * [FIX] merge issues * [FIX] environ bool check * [UPD] check for attr before calling module func * [UPD] check environ var if modules should be used, better when removing packet