Skip to content

Commit 23a2d51

Browse files
c0llab0rat0rntninja
authored andcommitted
Bump min Python version from 3.5.4 to 3.6.2
1 parent a5fd819 commit 23a2d51

File tree

11 files changed

+224
-218
lines changed

11 files changed

+224
-218
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ dist: bionic # VirtualEnv is too old on xenial
55

66
matrix:
77
include:
8-
- python: "3.5"
98
- python: "3.6"
109
- python: "3.7"
1110
- python: "3.8"
@@ -23,9 +22,6 @@ matrix:
2322

2423
# Testing on macOS/Darwin tends to be much slower so only test the bare minimum
2524
#
26-
# Minimum testing version is 3.6, since the 3.5 binaries from python.org fail
27-
# with TLS error when trying to install `tox`.
28-
#
2925
# When changing any version here also update the relevant checksum below with
3026
# the values found on the https://python.org/ website.
3127
- os: osx

ipfshttpclient/client/base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
from .. import multipart, http, utils
1010

1111

12+
#XXX: Review if this is still necessary after requiring Python 3.8.
1213
if ty.TYPE_CHECKING:
1314
import typing_extensions as ty_ext
1415
else:
1516
ty_ext = utils
1617

18+
# Ensure that proper types show up when generating documentation without hard-depending on
19+
# the cid package.
1720
if "cid" in sys.modules:
1821
import cid # type: ignore[import]
1922
cid_t = ty.Union[str, cid.CIDv0, cid.CIDv1]
@@ -29,7 +32,7 @@
2932
json_primitive_t = utils.json_primitive_t
3033
json_value_t = utils.json_value_t
3134

32-
# The following would be much more useful once GH/python/mypy#4441 is implemented…
35+
#XXX: The following would be more useful with https://github.com/python/mypy/issues/4441
3336
if ty.TYPE_CHECKING:
3437
# Lame workaround for type checkers
3538
CommonArgs = ty.Union[bool, http.auth_t, http.cookies_t, http.reqdata_sync_t,
@@ -48,7 +51,7 @@
4851
else:
4952
CommonArgs = ty.Dict[str, ty.Any]
5053

51-
# work around GH/mypy/mypy#731: no recursive structural types yet
54+
#XXX: work around https://github.com/python/mypy/issues/731: no recursive structural types yet
5255
response_item_t = ty.Union[
5356
json_primitive_t,
5457
"ResponseBase",

ipfshttpclient/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
The class hierachy for exceptions is::
2+
The class hierarchy for exceptions is:
33
44
Error
55
├── VersionMismatch
@@ -161,4 +161,4 @@ class ConnectionError(CommunicationError):
161161

162162
class TimeoutError(CommunicationError):
163163
"""Raised when the daemon didn't respond in time."""
164-
__slots__ = ()
164+
__slots__ = ()

0 commit comments

Comments
 (0)