Skip to content

Fix deprecation warnings#448

Merged
jesper-friis merged 7 commits intomasterfrom
fix-deprecation-warnings
Oct 22, 2025
Merged

Fix deprecation warnings#448
jesper-friis merged 7 commits intomasterfrom
fix-deprecation-warnings

Conversation

@jesper-friis
Copy link
Contributor

@jesper-friis jesper-friis commented Oct 11, 2025

Description

Fixed some deprecation warnings.

  • Replace calls to deprecated functions: get_jsonld_context(), get_prefixes() and get_shortnames().
  • Updated accepted arguments of get_context() (and underlying methods in Context) to enable the replacement of get_jsonld_context().
  • We keep for now the tests of the deprecated functions get_jsonld_context(), get_prefixes() and get_shortnames(), but ignore deprecation warnings within them.
  • Pint UnitRegistry has replaced index access to function access, i.e. ureg[] -> ureg().

Type of change

  • Bug fix and code cleanup
  • New feature
  • Documentation update
  • Testing

Checklist for the reviewer

This checklist should be used as a help for the reviewer.

  • Is the change limited to one issue?
  • Does this PR close the issue?
  • Is the code easy to read and understand?
  • Do all new feature have an accompanying new test?
  • Has the documentation been updated as necessary?
  • Is the code properly tested?

@codecov
Copy link

codecov bot commented Oct 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.05%. Comparing base (190475e) to head (5e9d232).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #448      +/-   ##
==========================================
+ Coverage   83.98%   84.05%   +0.06%     
==========================================
  Files          30       30              
  Lines        4140     4151      +11     
==========================================
+ Hits         3477     3489      +12     
+ Misses        663      662       -1     

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

@jesper-friis jesper-friis mentioned this pull request Oct 11, 2025
10 tasks
@jesper-friis jesper-friis enabled auto-merge (squash) October 22, 2025 10:55
@jesper-friis jesper-friis merged commit 824d2ba into master Oct 22, 2025
22 checks passed
@jesper-friis jesper-friis deleted the fix-deprecation-warnings branch October 22, 2025 11:05
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