We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ad363 commit 349917dCopy full SHA for 349917d
source_py3/python_toolbox/context_management/abstract_context_manager.py
@@ -14,7 +14,13 @@
14
15
class AbstractContextManager(metaclass=abc.ABCMeta):
16
'''
17
- blocktodo: add tests
+ A no-frills context manager.
18
+
19
+ This class is used mostly to check whether an object is a context manager:
20
21
+ >>> isinstance(threading.Lock(), AbstractContextManager)
22
+ True
23
24
25
@abc.abstractmethod
26
def __enter__(self):
0 commit comments