Skip to content

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

Merged
janezd merged 1 commit intobiolab:masterfrom
ales-erjavec:variable-type-predicates
Jan 16, 2018
Merged

[ENH] Variable: Simplify the is_{discrete,continuous,...} implementation#2874
janezd merged 1 commit intobiolab:masterfrom
ales-erjavec:variable-type-predicates

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