Skip to content

Commit 416dd47

Browse files
authored
Updated mypy and pylint (#54)
This change updates mypy to 0.782 and pylint to 2.6.0 to keep track with the time.
1 parent 50129f8 commit 416dd47

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

mapry/py/generate/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ def order_by_optional(properties: Mapping[str, mapry.Property]
152152
:param properties: properties of a composite
153153
:return: list of properties sorted stable by ``optional`` attribute
154154
"""
155-
return sorted([prop for prop in properties.values()],
156-
key=lambda prop: prop.optional)
155+
return sorted(properties.values(), key=lambda prop: prop.optional)
157156

158157

159158
class AutoID:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
'dev': [
4747
'coverage>=4.5.1,<5',
4848
'pydocstyle>=3.0.0,<4',
49-
'mypy==0.670',
50-
'pylint==2.3.0',
49+
'mypy==0.782',
50+
'pylint==2.6.0',
5151
'yapf==0.27.0',
5252
'temppathlib>=1.0.3,<2',
5353
'isort>=4.3.4,<5',

0 commit comments

Comments
 (0)