Skip to content

Commit

Permalink
Bumped the minimum Python version to 3.5.3
Browse files Browse the repository at this point in the history
Python 3.5.2 is just too buggy to properly work with typing_extensions.
  • Loading branch information
agronholm committed Jun 6, 2020
1 parent 4131c4e commit ffe26f1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- stage: test
env: TOXENV=py35
python: "3.5.2"
python: "3.5.3"
after_success: &after_success
- pip install coveralls
- coveralls
Expand Down
1 change: 1 addition & 0 deletions docs/versionhistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This library adheres to `Semantic Versioning 2.0 <https://semver.org/#semantic-v

**UNRELEASED**

- Upped the minimum Python version from 3.5.2 to 3.5.3
- Added support for ``typing.NoReturn``
- Added full support for ``typing_extensions`` (now equivalent to support of the ``typing`` module)
- Added the option of supplying ``check_type()`` with globals/locals for correct resolution of
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers =

[options]
packages = typeguard
python_requires = >= 3.5.2
python_requires = >= 3.5.3
zip_safe = False

[options.package_data]
Expand Down
3 changes: 0 additions & 3 deletions typeguard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,6 @@ def check_type(argname: str, value, expected_type, memo: Optional[_TypeCheckMemo
elif isclass(expected_type):
if issubclass(expected_type, Tuple):
check_tuple(argname, value, expected_type, memo)
elif issubclass(expected_type, Callable) and hasattr(expected_type, '__args__'):
# Needed on Python 3.5.0 to 3.5.2
check_callable(argname, value, expected_type, memo)
elif issubclass(expected_type, (float, complex)):
check_number(argname, value, expected_type)
elif _subclass_check_unions and issubclass(expected_type, Union):
Expand Down

0 comments on commit ffe26f1

Please sign in to comment.