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

core: replace MLContext with Context #3907

Merged
merged 4 commits into from
Feb 14, 2025
Merged

core: replace MLContext with Context #3907

merged 4 commits into from
Feb 14, 2025

Conversation

superlopuh
Copy link
Member

Just a single find and replace.

Fixes #249

Keeps MLContext as a deprecated subclass of Context for clients.

@superlopuh superlopuh added the core xDSL core (ir, textual format, ...) label Feb 14, 2025
@superlopuh superlopuh self-assigned this Feb 14, 2025
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.27%. Comparing base (c9b185e) to head (1dfbffe).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3907      +/-   ##
==========================================
- Coverage   91.28%   91.27%   -0.01%     
==========================================
  Files         466      466              
  Lines       57985    57990       +5     
  Branches     5566     5566              
==========================================
+ Hits        52929    52931       +2     
- Misses       3629     3631       +2     
- Partials     1427     1428       +1     

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

@@ -232,5 +232,7 @@ def get_optional_dialect(self, name: str) -> "Dialect | None":
return None


@deprecated("Please use Context instead")
class MLContext(Context): ...
class MLContext(Context):
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's wrong with @deprecated?

Copy link
Member Author

Choose a reason for hiding this comment

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

3.13

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool username :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

My bad

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Collaborator

@math-fehr math-fehr left a comment

Choose a reason for hiding this comment

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

o7

@superlopuh superlopuh merged commit 6f2c376 into main Feb 14, 2025
16 checks passed
@superlopuh superlopuh deleted the sasha/misc/context branch February 14, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core xDSL core (ir, textual format, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xDSL: rename MLContext
4 participants