Skip to content

Aaryamantriescode SyntaxWarnings #2962#2964

Merged
j9ac9k merged 5 commits intopyqtgraph:masterfrom
AaryamanVyas:Aaryamantriescode
Mar 16, 2024
Merged

Aaryamantriescode SyntaxWarnings #2962#2964
j9ac9k merged 5 commits intopyqtgraph:masterfrom
AaryamanVyas:Aaryamantriescode

Conversation

@AaryamanVyas
Copy link
Copy Markdown
Contributor

@AaryamanVyas AaryamanVyas commented Mar 15, 2024

Fixes #2962
This was the issue [The $ should be written \$ or r'$' since a few Python releases (same for all backslash escape that have no meanings). I don't have the time to search for other occurrences of this fact, but running the tests with PYTHONDEVMODE=1 should help spotting them :)]
I think I found the issue and made changes

@ixjlyons
Copy link
Copy Markdown
Member

Slight preference for a raw string (r'...') rather than escaping. I think I would go ahead and do the same for the other example here that sets a custom regex, though it's not strictly necessary.

@AaryamanVyas
Copy link
Copy Markdown
Contributor Author

Ok ill change that

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Mar 16, 2024

Hi @aaryamantriescode

Thanks for the PR, when using raw strings (r'') you should not take care to escape special characters using the /. Go ahead and remove the extra / characters in this PR, and that should be good 👍🏻

@AaryamanVyas
Copy link
Copy Markdown
Contributor Author

Is this fine now?

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Mar 16, 2024

image

Need to remove the first (or second) slash here in the screen shot.

@AaryamanVyas
Copy link
Copy Markdown
Contributor Author

😅got it

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Mar 16, 2024

Thanks for the PR @aaryamantriescode ❤️

@j9ac9k j9ac9k merged commit 4544539 into pyqtgraph:master Mar 16, 2024
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.

SyntaxWarnings

3 participants