We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f094bb commit 623e921Copy full SHA for 623e921
mypy/test/data/python2eval.test
@@ -379,3 +379,19 @@ _program.py:2: error: No overload variant of "f" matches argument types [builtin
379
def f(x): # type: (str) -> None
380
pass
381
f(bytearray('foo'))
382
+
383
+[case testAbstractProperty_python2]
384
+from abc import abstractproperty, ABCMeta
385
+class A:
386
+ __metaclass__ = ABCMeta
387
+ @abstractproperty
388
+ def x(self): # type: () -> int
389
+ pass
390
+class B(A):
391
+ @property
392
393
+ return 3
394
+b = B()
395
+print b.x + 1
396
+[out]
397
+4
0 commit comments