Strongtyping

Latest version: v3.12.1

Safety actively analyzes 630169 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 9

2.0.0

- Added two new decorators which can create docstrings from type informations.
- rest_docs_from_typing
- numpy_docs_from_typing
- Improvement of Documentation
- Moved docs from a simple README.md to readthedocs.com

2.0.0b

2.0.0a

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

1.7.0

1.6.4

1.6.3

v.1.6.2


v.1.6.1b

Page 6 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.