Skip to content

Commit

Permalink
refactor!: remove backwards compat import for LOCAL_NETWORK_NAME (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Dec 11, 2024
1 parent 22a6550 commit 510f2ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ape/api/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 510f2ea

Please sign in to comment.