We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 361a1f7 commit 0ff2cb5Copy full SHA for 0ff2cb5
tests/functional/r/regression_02/regression_2567.py
@@ -0,0 +1,33 @@
1
+"""
2
+Regression test for `no-member`.
3
+See: https://github.com/PyCQA/pylint/issues/2567
4
5
+
6
+# pylint: disable=missing-docstring,too-few-public-methods
7
8
+import contextlib
9
10
11
+@contextlib.contextmanager
12
+def context_manager():
13
+ try:
14
+ yield
15
+ finally:
16
+ pass
17
18
19
+cm = context_manager()
20
+cm.__enter__()
21
+cm.__exit__(None, None, None)
22
23
24
25
+def other_context_manager():
26
27
28
29
30
31
32
+with other_context_manager(): # notice the function call
33
0 commit comments