Skip to content

Releases: FelixTheC/strongtyping

v2.1.0

25 May 09:04
5bbe7aa
Compare
Choose a tag to compare
  • new type hint type Validator like Union you join a type-hint and a validation function
  • better TypeMisMatch tracecback informations (you will now see the value which caused this issue)

v2.0.2

23 May 18:55
4dbd186
Compare
Choose a tag to compare

fix handling empty containers
better handling typing.List[<foo>] and typing.List

v2.0.1

22 May 18:04
Compare
Choose a tag to compare

Better return type value formatting in rest_docs_from_typing, numpy_docs_from_typing

v2.0.0

21 May 18:00
Compare
Choose a tag to compare

v2.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

Beta

16 May 21:20
Compare
Choose a tag to compare
Beta Pre-release
Pre-release
v2.0.0b

[UPD] beta version

Alpha release for new feature

16 May 09:19
Compare
Choose a tag to compare
Pre-release

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

21 Jan 12:33
36ac0c9
Compare
Choose a tag to compare
Update setup.py

v1.6.4

28 Nov 12:47
3c4f6f1
Compare
Choose a tag to compare
#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

v1.6.3

20 Nov 12:30
f15b1d3
Compare
Choose a tag to compare
Hotfix globals (#47)

* [UPD] version

* [FIX] disable global copy

v.1.6.2

19 Nov 08:30
Compare
Choose a tag to compare
[UPD] version