chia-blockchain/chia/server
dustinface 9b1989b014
Enable and fix mypy in server.py (#13579)
* server: Enable and fix `mypy` in `server.py`

* Add a comment about the `Message` hint

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Tweak assert message

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Make `name` non-optional

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Properly reject incoming connections to crawlers

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Hint `StreamResponse` and return the existing `WebSocketResonse`

* Raise if `remote` is `None`

* Restore old behaviour: succeed, don't fail for self connection

* Raise `HTTPInternalServerError` if `remote` is `None`

* Cast config values to `int`

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-11-18 10:43:14 -06:00
..
__init__.py git mv src chia 2021-04-04 21:41:39 -07:00
address_manager_sqlite_store.py Peer db new serialization (#9079) 2021-11-19 11:12:58 -08:00
address_manager_store.py remove chia.util.path.mkdir() (#10842) 2022-06-08 10:24:40 -05:00
address_manager.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
introducer_peers.py attempt to save time hashing PeerInfo objects in introducer (#1990) 2021-04-17 09:25:40 -07:00
node_discovery.py Add optional outbound parameter to get_connections (#13879) 2022-11-15 17:40:16 -06:00
outbound_message.py server: Drop some unused code (#13867) 2022-11-08 18:04:56 -06:00
peer_store_resolver.py Peer db new serialization (#9079) 2021-11-19 11:12:58 -08:00
rate_limit_numbers.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
rate_limits.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
reconnect_task.py server: Create ssl contexts earlier + store them instead of all paths (#13512) 2022-09-29 12:14:20 -05:00
server.py Enable and fix mypy in server.py (#13579) 2022-11-18 10:43:14 -06:00
ssl_context.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
start_data_layer.py Refactor test utils for import availability outside of repo (#13880) 2022-11-15 18:51:05 -06:00
start_farmer.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
start_full_node.py switch to context manager for task timing (#13473) 2022-11-05 17:46:40 -05:00
start_harvester.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
start_introducer.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
start_service.py server: Make ChiaServer a dataclass (#13574) 2022-11-03 11:28:23 -05:00
start_timelord.py configure isort to add the future annotations import (#13327) 2022-09-30 03:40:22 -05:00
start_wallet.py switch to context manager for task timing (#13473) 2022-11-05 17:46:40 -05:00
upnp.py Refactor away from post init for UPnP (#11837) 2022-09-26 11:19:33 -05:00
ws_connection.py Reuse outbound_handshake (#13895) 2022-11-16 13:58:40 -06:00