Skip to content

fix: Set SliderProxy range params to Any #290

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 1 commit into
base: main
Choose a base branch
from

Conversation

gselzer
Copy link
Contributor

@gselzer gselzer commented Apr 18, 2025

When the types are ints, this raises mypy errors when e.g. setting the range of a QDoubleSlider to float values.

This change aligns with the parameter typing of _SliderProxy.setValue

When the types are ints, this raises mypy errors when e.g. setting the
range of a QDoubleSlider to float values.

This change aligns with the parameter typing of _SliderProxy.setValue
Copy link

codecov bot commented Apr 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.12%. Comparing base (358d041) to head (4f9f0f7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #290      +/-   ##
==========================================
+ Coverage   87.01%   87.12%   +0.10%     
==========================================
  Files          49       49              
  Lines        3774     3774              
==========================================
+ Hits         3284     3288       +4     
+ Misses        490      486       -4     

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

@tlambert03
Copy link
Member

Would float satisfy mypy? (I think it works for int too)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants