Skip to content

Commit 2e0243a

Browse files
Update ddtrace/profiling/collector/_lock.py
Co-authored-by: T. Kowalski <[email protected]>
1 parent 829badf commit 2e0243a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ddtrace/profiling/collector/_lock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ def __getattr__(self, name: str) -> Any:
317317
def __mro_entries__(self, bases: Tuple[Any, ...]) -> Tuple[Type[Any], ...]:
318318
"""Support subclassing the wrapped lock type (PEP 560).
319319
320-
When custom lock types inherit from a wrapped lock
321-
(e.g. neo4j's AsyncRLock that inherits from asyncio.Lock), program error with:
320+
Without this, when custom lock types inherit from a wrapped lock
321+
(e.g. neo4j's AsyncRLock that inherits from asyncio.Lock), the program would error with:
322322
> TypeError: _LockAllocatorWrapper.__init__() takes 2 positional arguments but 4 were given
323323
324324
This method returns the actual object type to be used as the base class.

0 commit comments

Comments
 (0)