Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved all interfaces to libp2p/abc #502

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Khwahish29
Copy link
Contributor

What was wrong?

Issue #228

Currently, interface definitions are scattered across multiple *_interface.py files in different sub-packages. This setup can lead to circular imports, especially when using interfaces as type hints.

How was it fixed?

  • Created a single libp2p/abc.py file and moved all interface definitions there.
  • Updated all imports across the codebase to reference libp2p.abc instead of individual _interface.py files.
  • Removed abc.py files from sub-packages, as they are no longer needed.
  • Ensured all existing tests pass without modification.

P.S. Assisted by @mystical-prog!

Cute Animal Picture

put a cute animal picture link inside the parentheses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant