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
explicit update() method for query_params #8205
Conversation
Awesome thanks @Asaurus1 ! |
I think most things here look good to me. If you could, could you fix the github actions? You should be able to run |
Yep will implement all these. I gotta do some fancy stuff on windows for pyformat because black does not like the symlink files but it'll work out. |
@sfc-gh-wihuang all updated |
@sfc-gh-wihuang I'd like to add a second function, Alternatively, a Thoughts? |
Might be worth making a small feature enhancement for that, describe the use case a little and just tag me before spending time writing the PR. I think some version of this probably does make sense but want to think through it. |
Can be a separate PR, sure. Don't hold this one up for it. 🙂 |
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! Thanks @Asaurus1 !
@willhuang1997 I don't think this licensing jstest failure is due to any changes I made, but let me know if I need to fix something there. |
hi @Asaurus1 , this is something the team is currently looking into and not your problem. Also, are these codeql notices something to worry about? It seems like we are overloading methods to deal with python types if I understand? |
Yeah, the codeql doesn't seem to understand the point of the @overload decorator for type checking, but we use @overload plenty of other places in the library in the same way. |
@Asaurus1 Yep, CodeQL gets the overload wrong :( I dismissed all of those as False positive. |
@willhuang1997 do I have any further actions here? I think all questions so far have been addressed. |
Hi, can you merge develop in? That should be the last step. Thanks! |
Yep! Squashed and rebased onto develop. As I was going through, I did notice an unrelated thing. The pre-commit file uses a specific, pinned version of black (https://github.com/streamlit/streamlit/blob/develop/.pre-commit-config.yaml#L23) but the dev-requirements.txt file calls out a back-pinned version of black only (https://github.com/streamlit/streamlit/blob/develop/lib/dev-requirements.txt#L1); since the Makefile has commands that both run black directly and calls out |
@Asaurus1 , I think they should be the same version but that's probably a problem for us at streamlit to figure out. |
Also, feel free to merge. Otherwise, I can merge. |
I do not have merge permissions yet 🫠. |
Describe your changes
Adds an explicit .update() method to st.query_params
Other changes
os.path.join
instead of hard coded "/" so that, again, path matching works on systems which use "\" as a path separator.__len__
method to ForwardMsgQueue because it makes obvious sense and aids with the new testing added on this PR.GitHub Issue Link (if applicable)
#8199
Testing Plan
Unit tests updated
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.