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

Make it less likely that we use ValidateTrait.int_range accidentally #805

Merged
merged 1 commit into from
Jan 24, 2020

Conversation

mdickinson
Copy link
Member

ValidateTrait.int_range is unsupported, and documented as unused. This PR removes a line of code that (a) uses it, but (b) never actually gets executed in practice, to eliminate the danger of that line of code being used in the future.

Closes #684

@codecov-io
Copy link

codecov-io commented Jan 24, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@27210f5). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #805   +/-   ##
=========================================
  Coverage          ?   72.41%           
=========================================
  Files             ?       51           
  Lines             ?     6363           
  Branches          ?     1274           
=========================================
  Hits              ?     4608           
  Misses            ?     1362           
  Partials          ?      393
Impacted Files Coverage Δ
traits/trait_types.py 69.73% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 27210f5...2b10708. Read the comment docs.

Copy link
Contributor

@corranwebster corranwebster left a comment

Choose a reason for hiding this comment

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

Looks good.

@mdickinson mdickinson merged commit 7837dc2 into master Jan 24, 2020
@mdickinson mdickinson deleted the fix/dont-use-validate-trait-int-range branch January 24, 2020 17:08
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.

Range validation for ints sets bad c-level validator value
3 participants