Skip to content

Commit

Permalink
Updated fastfn docstring and renamed kargs to kwargs (pymc-devs#4651)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swanand01 authored Jun 5, 2021
1 parent 686e536 commit 84110de
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pymc3/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class ContextMeta(type):
the `with` statement.
"""

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

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

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

Expand Down Expand Up @@ -1397,7 +1397,7 @@ def makefn(self, outs, mode=None, *args, **kwargs):
Parameters
----------
outs: Aesara variable or iterable of Aesara variables
mode: Aesara compilation mode
mode: Aesara compilation mode, default=None
Returns
-------
Expand Down Expand Up @@ -1721,7 +1721,8 @@ def fn(outs, mode=None, model=None, *args, **kwargs):
Parameters
----------
outs: Aesara variable or iterable of Aesara variables
mode: Aesara compilation mode
mode: Aesara compilation mode, default=None
model: Model, default=None
Returns
-------
Expand Down

0 comments on commit 84110de

Please sign in to comment.