Skip to content

Commit 08d7e12

Browse files
committed
Fix incorporate_methods().
This function offered a `default` argument which was ignored. Since it was advertised as doing something that it does not do, it's not appropriate to just deprecate it: it must be removed.
1 parent 5619e69 commit 08d7e12

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pymc3/model.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ def __call__(self, *args, **kwargs):
5656
return getattr(self.obj, self.method_name)(*args, **kwargs)
5757

5858

59-
def incorporate_methods(source, destination, methods, default=None,
59+
def incorporate_methods(source, destination, methods,
6060
wrapper=None, override=False):
6161
"""
62-
Add attributes to a destination object which points to
62+
Add attributes to a destination object which point to
6363
methods from from a source object.
6464
6565
Parameters
@@ -70,8 +70,6 @@ def incorporate_methods(source, destination, methods, default=None,
7070
The destination object for the methods.
7171
methods : list of str
7272
Names of methods to incorporate.
73-
default : object
74-
The value used if the source does not have one of the listed methods.
7573
wrapper : function
7674
An optional function to allow the source method to be
7775
wrapped. Should take the form my_wrapper(source, method_name)

0 commit comments

Comments
 (0)