Skip to content

Commit 9a04691

Browse files
author
Sylvain MARIE
committed
Bugfix for python 3.5.2. Fixed #30
1 parent 5e15d1d commit 9a04691

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 4.1.1 - Bugfix for python 3.5.2
4+
5+
Fixed [#30](https://github.com/smarie/python-valid8/issues/30).
6+
37
### 4.1.0 - `validate` instance/subclass fix
48

59
* `assert_instance_of` and `assert_subclass_of` (used in the `validate` inline entry point) fixed so as to support `Enum` types. Fixed [#28](https://github.com/smarie/python-valid8/issues/28). **Important**: only `tuple` are now supported when several types are provided in `validate`'s `instance_of` and `subclass_of` arguments. This is to has a closer behaviour to the python stdlib.

valid8/composition.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
ValidationFuncs = Union[ValidationFunc, List['ValidationFuncs']] # recursion is used here ('forward reference')
3030
""" Represents the 'typing' type for 'validation_func' arguments in the various methods """
3131

32+
except TypeError:
33+
# this happens with python 3.5.2: typing has an issue.
34+
pass
3235
except ImportError:
3336
pass
3437

0 commit comments

Comments
 (0)