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

[ENH] Variable: Simplify the is_{discrete,continuous,...} implementation #2874

Merged
merged 1 commit into from
Jan 16, 2018

Conversation

ales-erjavec
Copy link
Contributor

Issue

Depending on your chosen IDE, type checker or Mk I eyeball, the Variable.is_{discrete,...} might be unrecognized.

Description of changes

Define the descriptors/predicates in the class body to make it more friendly for code completion and type hinting/checking.

Includes
  • Code changes
  • Tests
  • Documentation

Make it more friendly for code completion and type hinting/checking.
@codecov-io
Copy link

Codecov Report

Merging #2874 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2874      +/-   ##
==========================================
+ Coverage   81.91%   81.91%   +<.01%     
==========================================
  Files         326      326              
  Lines       55997    55998       +1     
==========================================
+ Hits        45868    45869       +1     
  Misses      10129    10129

@janezd
Copy link
Contributor

janezd commented Jan 16, 2018

Nice!

@janezd janezd merged commit 3f819e7 into biolab:master Jan 16, 2018
@ales-erjavec ales-erjavec deleted the variable-type-predicates branch January 17, 2018 08:19
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.

3 participants