-
-
Notifications
You must be signed in to change notification settings - Fork 819
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
refactor: builtin functions inherit from VyperType
#3559
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3559 +/- ##
==========================================
+ Coverage 89.61% 90.21% +0.60%
==========================================
Files 80 79 -1
Lines 11343 11257 -86
Branches 2553 2544 -9
==========================================
- Hits 10165 10156 -9
+ Misses 791 713 -78
- Partials 387 388 +1 ☔ View full report in Codecov by Sentry. |
vyper/semantics/types/function.py
Outdated
# note special meaning for -1 in validate_call_args API | ||
expect_num_args = (num_args, -1) | ||
|
||
validate_call_args(node, expect_num_args, list(self._kwargs.keys())) |
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.
Last argument should be a list of names for valid keyword arguments. Previously, it was a dictionary of KwargSettings
.
VyperType
@@ -98,22 +98,22 @@ | |||
) | |||
|
|||
from ._convert import convert | |||
from ._signatures import BuiltinFunction, process_inputs | |||
from ._signatures import BuiltinFunctionT, process_inputs |
Check notice
Code scanning / CodeQL
Cyclic import Note
What I did
Builtin functions are currently the remaining types that are not a "VyperType". This PR resolves this inconsistency by making builtin functions inherit from
VyperType
.How I did it
Move code around.
How to verify it
See tests
Commit message
Description for the changelog
Make builtin functions vyper types
Cute Animal Picture