Skip to content

Commit 10483ee

Browse files
committed
Fix TypeVar substitution by asynccontextmanager
1 parent fffbe88 commit 10483ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/plugins/default.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def get_function_hook(self, fullname: str
2626

2727
if fullname == 'contextlib.contextmanager':
2828
return contextmanager_callback
29+
elif fullname == 'contextlib.asynccontextmanager':
30+
return contextmanager_callback
2931
elif fullname == 'builtins.open' and self.python_version[0] == 3:
3032
return open_callback
3133
elif fullname == 'ctypes.Array':

0 commit comments

Comments
 (0)