Skip to content

Commit

Permalink
Update to typingplus 2.2.3 and fix flake8 issues with black formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
dangle committed Oct 11, 2018
1 parent c16f73d commit d45d27c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ universal = 1
ignore =
D202,
D203,
E203,
F403,
F405,
F821
F821,
W503,
exclude =
.git,
__pycache__,
Expand All @@ -26,6 +28,7 @@ exclude =
max-complexity = 10

[pep257]
add-ignore=D202
match-dir = typet|tests|.
match = .*\.py

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
license="MIT",
packages=find_packages(exclude=["tests", "docs"]),
install_requires=["pathlib2", "typingplus >= 2.2.2, < 3"],
install_requires=["pathlib2", "typingplus >= 2.2.3, < 3"],
setup_requires=["pytest-runner", "setuptools_scm"],
tests_require=["pytest >= 3.2"],
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion typet/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def _fset(self, value): # type: Any
rtype = type_map[type_]
if not is_instance(value, rtype):
raise TypeError(
"Cannot assign value of type {} to attribute of type {}.".format(
"Cannot assign type of {} to attribute of type {}.".format(
_get_type_name(type(value)), _get_type_name(rtype)
)
)
Expand Down

0 comments on commit d45d27c

Please sign in to comment.