-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Replace VarName with built-in str #7855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Kept the default behavior. If name is None, then it will convert `var` itself to str.
This reverts commit 981e200.
I also attempted to address the second point re.
|
That should check explicitly if the input is a string, instead of trying to call var.name on it |
if var.name is None, current get_var_name returns "None", not str(var)
Makes sense, missed that var could be str. Updated PR. |
Description
This change:
str
get_var_name
to have it work without getattrRelated Issue
VarName
from codebase #7843Checklist
Type of change
📚 Documentation preview 📚: https://pymc--7855.org.readthedocs.build/en/7855/