Skip to content

Commit 2d141d9

Browse files
committed
chore: mypy got smart
Properties are somewhat supported now: python/mypy#13409
1 parent 20cf55d commit 2d141d9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

aiocouch/bulk.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ def create(self, id: str, data: Optional[JsonDict] = None) -> Document:
137137

138138
return doc
139139

140-
# Mypy isn't smart enough, see: https://github.com/python/mypy/issues/1362
141-
@property # type:ignore
140+
@property
142141
@deprecated(version="2.1.0", reason="Use the response property instead.")
143142
def status(self) -> Optional[List[JsonDict]]: # pragma: no cover
144143
return self.response

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ docs =
5757
sphinxcontrib-trio
5858
sphinxcontrib-httpdomain
5959
typing =
60-
mypy
60+
mypy >= 0.981
6161
types-Deprecated
6262
dev =
6363
isort

0 commit comments

Comments
 (0)