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 DeprecationWarning: Attribute s is deprecated and will be removed… #2926

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

hamedsh
Copy link

@hamedsh hamedsh commented Mar 14, 2024

… in Python 3.14; use value instead

The attribute check within the 'ode.py' script has been updated. Previously, it checked whether the event has an attribute 's', however, this has been modified to check for the 'value' attribute instead. This ensures the correct attribute is being checked for the ongoing processes.

@hamedsh hamedsh requested a review from a team as a code owner March 14, 2024 08:40
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 88.014%. Comparing base (b6a8f8e) to head (457fa57).
Report is 2 commits behind head on main.

❗ Current head 457fa57 differs from pull request most recent head d2f7541. Consider uploading reports for the commit d2f7541 to get more accurate results

Files Patch % Lines
sanic/touchup/schemes/ode.py 50.000% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##              main     #2926       +/-   ##
=============================================
- Coverage   88.134%   88.014%   -0.120%     
=============================================
  Files           94        94               
  Lines         7408      7409        +1     
  Branches      1307      1307               
=============================================
- Hits          6529      6521        -8     
- Misses         592       598        +6     
- Partials       287       290        +3     

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

Copy link
Member

@ahopkins ahopkins left a comment

Choose a reason for hiding this comment

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

This should be conditional check so that we are backwards compat on all supported versions.

hamed added 2 commits March 25, 2024 09:32
… in Python 3.14; use value instead

The attribute check within the 'ode.py' script has been updated. Previously, it checked whether the event has an attribute 's', however, this has been modified to check for the 'value' attribute instead. This ensures the correct attribute is being checked for the ongoing processes.
Adjusted a condition in 'ode.py' to handle changes in sys.version_info from 3.12 onwards. This fix ensures compatibility with newer Python versions as system requirements are now checked before the execution of certain commands.
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

2 participants