blob: 012825db07e116764714ab8bd3f0b576695a4be3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
"""Latest version of astroid (2.6.3) causes RuntimeError:
generator raised StopIteration #4723"""
# pylint: disable=invalid-name,missing-docstring,too-few-public-methods
import contextlib
class A:
@contextlib.contextmanager
def get(self):
yield self
class B(A):
def play(): # [no-method-argument]
pass
def func():
with B().get() as b:
b.play()
|