- 
                Notifications
    You must be signed in to change notification settings 
- Fork 203
Closed
Description
Bug Report
I am using the AsyncTransaction context manager
 async with txn_manager as _txn:
    ...However, the Pylance VSCode extension (powered by Pyright) in Basic Type checking mode is giving a type error:
Object of type "AsyncTransaction" cannot be used with "with" because it does not implement __aenter__
Object of type "AsyncTransaction" cannot be used with "with" because it does not implement __aexit__
I believe that it is because AsyncTransaction's __aenter__ and __aexit__ are wrapped with functools.wraps(AsyncTransactionBase._enter) and functools.wraps(AsyncTransactionBase._exit) respectively
My Environment
Python Version: 3.11
Driver Version: 5.14
Operating System: macOS
Metadata
Metadata
Assignees
Labels
No labels
