We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd2e1a3 commit 3b8500bCopy full SHA for 3b8500b
pymc/pytensorf.py
@@ -559,6 +559,8 @@ def join_nonshared_inputs(
559
class PointFunc:
560
"""Wraps so a function so it takes a dict of arguments instead of arguments."""
561
562
+ __slots__ = ("f",)
563
+
564
def __init__(self, f):
565
self.f = f
566
@@ -567,8 +569,7 @@ def __call__(self, state):
567
569
568
570
def __getattr__(self, item):
571
"""Allow access to the original function attributes."""
- if item == "f":
- return self.f
572
+ # This is only reached if `__getattribute__` fails.
573
return getattr(self.f, item)
574
575
0 commit comments