Skip to content

feat[lang]: @raw_return decorator #4568

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented Apr 9, 2025

What I did

How I did it

How to verify it

ex.

@external
@raw_return
def foo() -> Bytes[32]:
    b"asdlkfj"

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-->

@charles-cooper charles-cooper force-pushed the feat/lang/raw-return-decorator branch from 450bc53 to 83089d0 Compare April 9, 2025 11:58
@@ -31,6 +31,7 @@
)
from vyper.semantics.data_locations import DataLocation
from vyper.semantics.types.base import KwargSettings, VyperType
from vyper.semantics.types.bytestrings import BytesT

Check notice

Code scanning / CodeQL

Cyclic import Note

Import of module
vyper.semantics.types.bytestrings
begins an import cycle.
Copy link

codecov bot commented Apr 9, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 92.52%. Comparing base (4463878) to head (39941e4).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
vyper/semantics/types/function.py 64.70% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4568      +/-   ##
==========================================
- Coverage   92.56%   92.52%   -0.05%     
==========================================
  Files         123      123              
  Lines       17494    17530      +36     
  Branches     2957     2968      +11     
==========================================
+ Hits        16194    16220      +26     
- Misses        896      901       +5     
- Partials      404      409       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants