Skip to content

Commit a0456e7

Browse files
committed
multiple pythons
1 parent 80f6ee6 commit a0456e7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ dist: trusty
44

55
python:
66
- 3.6
7+
- 3.5.2
8+
- 3.5.3
9+
- 3.5.4
710

811
virtualenv:
912
system_site_package: true

type_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _check_type_Union(type_, value):
5858
# Python 3.5
5959
union_args = type_.__union_params__
6060

61-
# Requires Python 3.5.4+ otherwise https://github.com/python/typing/issues/477
61+
# isinstance cause https://github.com/python/typing/issues/477.tested with python 3.5.4 and 3.6
6262
matched_types = list(filter(lambda t: issubclass(value.__class__, t), union_args))
6363
if not matched_types:
6464
raise TypeError

0 commit comments

Comments
 (0)