Skip to content

Commit 84110de

Browse files
authored
Updated fastfn docstring and renamed kargs to kwargs (#4651)
Closes #4630
1 parent 686e536 commit 84110de

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pymc3/model.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class ContextMeta(type):
137137
the `with` statement.
138138
"""
139139

140-
def __new__(cls, name, bases, dct, **kargs): # pylint: disable=unused-argument
140+
def __new__(cls, name, bases, dct, **kwargs): # pylint: disable=unused-argument
141141
"Add __enter__ and __exit__ methods to the class."
142142

143143
def __enter__(self):
@@ -160,7 +160,7 @@ def __exit__(self, typ, value, traceback): # pylint: disable=unused-argument
160160

161161
# We strip off keyword args, per the warning from
162162
# StackExchange:
163-
# DO NOT send "**kargs" to "type.__new__". It won't catch them and
163+
# DO NOT send "**kwargs" to "type.__new__". It won't catch them and
164164
# you'll get a "TypeError: type() takes 1 or 3 arguments" exception.
165165
return super().__new__(cls, name, bases, dct)
166166

@@ -1397,7 +1397,7 @@ def makefn(self, outs, mode=None, *args, **kwargs):
13971397
Parameters
13981398
----------
13991399
outs: Aesara variable or iterable of Aesara variables
1400-
mode: Aesara compilation mode
1400+
mode: Aesara compilation mode, default=None
14011401
14021402
Returns
14031403
-------
@@ -1721,7 +1721,8 @@ def fn(outs, mode=None, model=None, *args, **kwargs):
17211721
Parameters
17221722
----------
17231723
outs: Aesara variable or iterable of Aesara variables
1724-
mode: Aesara compilation mode
1724+
mode: Aesara compilation mode, default=None
1725+
model: Model, default=None
17251726
17261727
Returns
17271728
-------

0 commit comments

Comments
 (0)