Skip to content

Commit 500b476

Browse files
committed
Add __slots__ to Multiaddr object
1 parent 79406ef commit 500b476

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

multiaddr/multiaddr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class Multiaddr(object):
2929
return new objects rather than modify internal state.
3030
"""
3131

32+
__slots__ = ("_bytes",)
33+
3234
def __init__(self, addr):
3335
"""Instantiate a new Multiaddr.
3436

0 commit comments

Comments
 (0)