-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Clarify docstring of is_parameterized
#7215
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
Clarify docstring of is_parameterized
#7215
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7215 +/- ##
==========================================
- Coverage 98.14% 98.14% -0.01%
==========================================
Files 1104 1104
Lines 96352 96352
==========================================
- Hits 94569 94565 -4
- Misses 1783 1787 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Tiny optional nit.
@@ -67,7 +67,7 @@ def is_parameterized(val: Any) -> bool: | |||
|
|||
A value is parameterized when it has an `_is_parameterized_` method and | |||
that method returns a truthy value, or if the value is an instance of | |||
sympy.Basic. | |||
sympy.Basic. Note this covers sympy constants such as `sympy.pi`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nit that can be ignored: I would perhaps change that line to
`sympy.Basic`. Note this covers SymPy constants such as `sympy.pi`.
but really, looking at the rest of the file, it has other places where capitalization and backticks are inconsistent, so it could be left to some later sweep to deal with such nonessential things.
Resolves #7053