Files
Semyon Proshev 68b17b57c0 Make return type weak for functions decorated with unknown decorator (PY-28626)
Or decorator that could change return type.
2018-03-27 21:33:54 +03:00

13 lines
136 B
Python

from contextlib import contextmanager
@contextmanager
def mycm():
pass
yield
pass
@mycm()
def decorated_func():
pass