From 510f2ea46a2452c86759ea0e351a96f7f00c0ddb Mon Sep 17 00:00:00 2001 From: antazoey Date: Thu, 12 Dec 2024 02:18:42 +0700 Subject: [PATCH] refactor!: remove backwards compat import for `LOCAL_NETWORK_NAME` (#2412) --- src/ape/api/networks.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ape/api/networks.py b/src/ape/api/networks.py index f83510086f..910e051b35 100644 --- a/src/ape/api/networks.py +++ b/src/ape/api/networks.py @@ -392,7 +392,7 @@ def default_network_name(self) -> str: return network if LOCAL_NETWORK_NAME in self.networks: - # Default to the LOCAL_NETWORK_NAME, at last resort. + # Default to the LOCAL_NETWORK_NAME, as 'last' resort (unless isn't one?). return LOCAL_NETWORK_NAME elif len(self.networks) >= 1: @@ -1444,11 +1444,9 @@ def network_id(self) -> int: return network_def -# TODO: Can remove in 0.9 since `LOCAL_NETWORK_NAME` doesn't need to be here. __all__ = [ "create_network_type", "EcosystemAPI", - "LOCAL_NETWORK_NAME", # Have to leave for backwards compat. "ForkedNetworkAPI", "NetworkAPI", "ProviderContextManager",