Skip to content

Allow delegator to return delegate's properties - #243

Merged
faif merged 2 commits into
faif:masterfrom
eclectic-boy:patch-1
Oct 5, 2018
Merged

faif merged 2 commits into
faif:masterfrom
eclectic-boy:patch-1

Conversation

@eclectic-boy

Copy link
Copy Markdown
Contributor

The current code does not allow the delegator to return the value of properties of the delegate but can only call its methods. Moreover if the method does not exist then None is returned rather than raising an exception.
This PR is for fixing the above.

The current code does not allow the delegator to return the value of properties of the delegate but can only call its methods. Moreover if the method does not exist then `None` is returned rather than raising an exception.
This PR is for fixing the above.
@codecov-io

codecov-io commented Sep 28, 2018 •

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #243      +/-   ##
==========================================
+ Coverage   97.67%   97.67%   +<.01%     
==========================================
  Files          61       61              
  Lines        2278     2280       +2     
==========================================
+ Hits         2225     2227       +2     
  Misses         53       53
Impacted Files Coverage Δ
fundamental/delegation_pattern.py 100% <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 ede5733...a0fe948. Read the comment docs.

@faif
faif merged commit d3bd0d8 into faif:master Oct 5, 2018
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