We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e080e0 commit 8bd092bCopy full SHA for 8bd092b
Lib/contextlib.py
@@ -27,7 +27,7 @@ def __subclasshook__(cls, C):
27
if cls is AbstractContextManager:
28
if (any("__enter__" in B.__dict__ for B in C.__mro__) and
29
any("__exit__" in B.__dict__ for B in C.__mro__)):
30
- return True
+ return True
31
return NotImplemented
32
33
0 commit comments