From 84110de749f149441c2fda7a3a58248b1350ff63 Mon Sep 17 00:00:00 2001 From: Swanand01 <75439077+Swanand01@users.noreply.github.com> Date: Sat, 5 Jun 2021 23:15:11 +0530 Subject: [PATCH] Updated fastfn docstring and renamed kargs to kwargs (#4651) Closes #4630 --- pymc3/model.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pymc3/model.py b/pymc3/model.py index a8f355b51d..0139c430b7 100644 --- a/pymc3/model.py +++ b/pymc3/model.py @@ -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): @@ -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) @@ -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 ------- @@ -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 -------