Skip to content

Commit

Permalink
Add __weakref__ to __slots__ of Server
Browse files Browse the repository at this point in the history
  • Loading branch information
realshouzy committed May 16, 2024
1 parent 7741268 commit 027733b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nrw/network/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class Client(ABC):
def process_message(self, message: str) -> None: ...

class Server(ABC):
__slots__: Final[tuple[str, str, str]] = (
__slots__: Final[tuple[str, str, str, str]] = (
"__weakref__",
"_connection_handler",
"_message_handlers",
"_lock",
Expand Down
3 changes: 2 additions & 1 deletion nrw/network/_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ class Server(ABC):
getrennte Verbindungen können nicht reaktiviert werden.
"""

__slots__: Final[tuple[str, str, str]] = (
__slots__: Final[tuple[str, str, str, str]] = (
"__weakref__",
"_connection_handler",
"_message_handlers",
"_lock",
Expand Down

0 comments on commit 027733b

Please sign in to comment.