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

Remove type hinting check in transforms #4942

Merged
merged 13 commits into from Dec 14, 2023
Merged

Remove type hinting check in transforms #4942

merged 13 commits into from Dec 14, 2023

Conversation

rmoyard
Copy link
Contributor

@rmoyard rmoyard commented Dec 12, 2023

Context:

The type hinting check is removed for transforms, in order to make the transform decorator more practical.

Description of the Change:

Remove the type hinting check that would fail if the user does not respect the transform contract.

The signature check between the transform and the expand transform is kept.

Benefits:

More practical for advanced users

Possible Drawbacks:

Potentially harder for beginners to create if the contract is not understood.

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8b0c65b) 99.67% compared to head (167d04f) 99.49%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4942      +/-   ##
==========================================
- Coverage   99.67%   99.49%   -0.19%     
==========================================
  Files         388      388              
  Lines       35418    35199     -219     
==========================================
- Hits        35302    35020     -282     
- Misses        116      179      +63     

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

@rmoyard
Copy link
Contributor Author

rmoyard commented Dec 12, 2023

[sc-47760]

@rmoyard rmoyard changed the title Remove type hinting in transforms Remove type hinting check in transforms Dec 13, 2023
Copy link
Contributor

@timmysilv timmysilv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minimal and perfect! :shipit:

Copy link
Member

@josh146 josh146 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks Romain! 💯

doc/releases/changelog-dev.md Outdated Show resolved Hide resolved
@rmoyard rmoyard enabled auto-merge (squash) December 14, 2023 14:18
@albi3ro albi3ro merged commit dfb4df6 into master Dec 14, 2023
34 of 35 checks passed
@albi3ro albi3ro deleted the remove_hinting branch December 14, 2023 16:30
mudit2812 pushed a commit that referenced this pull request Dec 15, 2023
**Context:**

The type hinting check is removed for transforms, in order to make the
transform decorator more practical.

**Description of the Change:**

Remove the type hinting check that would fail if the user does not
respect the transform contract.

The signature check between the transform and the expand transform is
kept.

**Benefits:**

More practical for advanced users

**Possible Drawbacks:**

Potentially harder for beginners to create if the contract is not
understood.

---------

Co-authored-by: Josh Izaac <josh146@gmail.com>
mudit2812 pushed a commit that referenced this pull request Jan 19, 2024
**Context:**

The type hinting check is removed for transforms, in order to make the
transform decorator more practical.

**Description of the Change:**

Remove the type hinting check that would fail if the user does not
respect the transform contract.

The signature check between the transform and the expand transform is
kept.

**Benefits:**

More practical for advanced users

**Possible Drawbacks:**

Potentially harder for beginners to create if the contract is not
understood.

---------

Co-authored-by: Josh Izaac <josh146@gmail.com>
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.

None yet

4 participants