The program crashes (without throwing any exceptions) whilst trying to access the data attribute in the Peer class. This was fixed by adding a check before returning the value. This would only occur if the attribute hasn't been given a value.
From:
line 576 | return self._enet_peer.data
To:
line 576 | return self._enet_peer.data if self._enet_peer.data else None
New
Added a stub file for the module. This allows for type hinting and autocompletion in IDEs such as PyCharm and VSCode.
Fixes
From:
To:
New