Skip to content

Pylint Fix for expression branch #1083

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

Merged
merged 8 commits into from
May 23, 2025
Merged

Conversation

benflexcompute
Copy link
Collaborator

No description provided.

@@ -18,27 +18,13 @@ def _unit_list():


def _import_flow360(name: str) -> Any:
import flow360 as fl
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are no longer needed? They cause cyclic import.


return u

if name == "control":
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. Do we rely on the context/resolver to parse "solution."?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is always used from the flow360 client context those symbols will be already imported, so I think evaluation should work fine even with those removed... Overall we want to rely on context/resolver for security reasons - so that we only expose the whitelisted symbols and nothing else.

@benflexcompute benflexcompute merged commit 2a12453 into expressions May 23, 2025
15 checks passed
@benflexcompute benflexcompute deleted the BenY/FixExpressionLint branch May 23, 2025 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants