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

fix: signature for get_type_from_annotation #2805

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

charles-cooper
Copy link
Member

What I did

fix #2801

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@codecov-commenter
Copy link

codecov-commenter commented Apr 16, 2022

Codecov Report

Merging #2805 (dcaee9a) into master (c270363) will decrease coverage by 35.75%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           master    #2805       +/-   ##
===========================================
- Coverage   87.47%   51.72%   -35.76%     
===========================================
  Files          94       94               
  Lines       10003    10000        -3     
  Branches     2480     2432       -48     
===========================================
- Hits         8750     5172     -3578     
- Misses        785     4302     +3517     
- Partials      468      526       +58     
Impacted Files Coverage Δ
vyper/semantics/types/bases.py 60.82% <100.00%> (-23.20%) ⬇️
vyper/builtin_interfaces/ERC165.py 0.00% <0.00%> (-100.00%) ⬇️
vyper/builtin_interfaces/ERC20Detailed.py 0.00% <0.00%> (-100.00%) ⬇️
vyper/ir/s_expressions.py 5.88% <0.00%> (-88.24%) ⬇️
vyper/ast/natspec.py 12.34% <0.00%> (-86.42%) ⬇️
vyper/codegen/external_call.py 12.74% <0.00%> (-83.34%) ⬇️
vyper/semantics/validation/levenshtein_utils.py 16.00% <0.00%> (-76.00%) ⬇️
vyper/cli/utils.py 16.66% <0.00%> (-71.43%) ⬇️
vyper/codegen/function_definitions/utils.py 28.57% <0.00%> (-71.43%) ⬇️
vyper/ast/expansion.py 23.52% <0.00%> (-70.59%) ⬇️
... and 58 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c270363...dcaee9a. Read the comment docs.

in several places, the extra args (e.g. is_constant) are passed as
positional args instead of kwargs, resulting in a TypeError, instead of
raising the user-friendly exception. this commit adds `*args` to the
signature so that the TypeEror is not raised.
@charles-cooper charles-cooper changed the title fix call to from_annotation fix: signature for get_type_from_annotation Apr 19, 2022
@charles-cooper charles-cooper marked this pull request as ready for review April 19, 2022 20:09
@charles-cooper charles-cooper merged commit 37fd1e0 into vyperlang:master Apr 20, 2022
@charles-cooper charles-cooper deleted the fix_minor_bugs branch April 20, 2022 07:39
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.

TypeError: from_annotation() takes 2 positional arguments but 6 were given
3 participants