Skip to content

Commit

Permalink
add slots
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 committed Jan 5, 2025
1 parent 419cfa6 commit edc4a9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/asyncio/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def _run(self):

class _ThreadSafeHandle(Handle):

__slots__ = ('_lock',)

def __init__(self, callback, args, loop, context=None):
super().__init__(callback, args, loop, context)
self._lock = threading.RLock()
Expand Down

0 comments on commit edc4a9f

Please sign in to comment.