-
Notifications
You must be signed in to change notification settings - Fork 2k
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
explicitly collect api methods instead of later using getattr #18800
base: main
Are you sure you want to change the base?
Conversation
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not the most familiar with this section of the code, but I understand and support the general idea. I made a couple of the monkeypatched areas of the tests I think and assure you I put less thought into it than was likely put into fixing it here.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Co-authored-by: Amine Khaldi <[email protected]>
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Pull Request Test Coverage Report for Build 11713006287Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
|
||
@metadata.request(request_type=ProtocolMessageTypes.handshake) | ||
async def f(self: object, request: RequestTransaction) -> None: | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass | |
pass # pragma: no cover |
pass | ||
|
||
async def g(self: object, request: RequestTransaction) -> None: | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass | |
pass # pragma: no cover |
Purpose:
i never really felt good about the
getattr()
down inws_connection.py
. beyond just addressing that, this gives each api implementation (FullNodeApi
etc) a specific object holding the api definition. a small step towards having a well formed definition of our api rather than having to iterate misc maybe-not-part-of-the-api methods anywhere you need to discover this information.Current Behavior:
New Behavior:
Testing Notes: