Skip to content
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

fix: use "==" with literal to remove warning during "python setup.py updateplotlyjs" #4607

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gvwilson
Copy link
Contributor

@gvwilson gvwilson commented May 8, 2024

  • Existing code produces this warning during python setup.py updateplotlyjs step from contributing.md:
/Users/gvwilson/plotly.py/packages/python/chart-studio/chart_studio/tools.py:290: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if share_key is "":
  • Revised code uses == instead of is

    • Warning goes away
    • No change in test status
  • I have read through the contributing notes and understand the structure of the package. In particular, if my PR modifies code of plotly.graph_objects, my modifications concern the codegen files and not generated files.

…updateplotlyjs"

-   Existing code produces this warning during `python setup.py updateplotlyjs` step from `contributing.md`:

```
/Users/gvwilson/plotly.py/packages/python/chart-studio/chart_studio/tools.py:290: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if share_key is "":
```

-   Revised code uses `==` instead of `is`
    -   Warning goes away
    -   No change in test status
@gvwilson gvwilson added the sev-4 label May 8, 2024
@gvwilson gvwilson self-assigned this May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant