-
Notifications
You must be signed in to change notification settings - Fork 4k
deprecation_util.py (formerly beta_util.py)
#5754
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
deprecation_util.py (formerly beta_util.py)
#5754
Conversation
| @@ -0,0 +1,121 @@ | |||
| # Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022) | |||
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.
This is just a renamed version of beta_util_test.py. The tests are now parameterized on PrereleaseAPIType, so that they test both beta_ and experimental_ deprecation warnings.
| has_shown_beta_warning = True | ||
| _show_beta_warning(obj_name, date) | ||
| nonlocal has_shown_graduation_warning | ||
| if not has_shown_graduation_warning: |
Check failure
Code scanning / CodeQL
Potentially uninitialized local variable
| """ | ||
|
|
||
| has_shown_beta_warning = False | ||
| has_shown_graduation_warning = False |
Check notice
Code scanning / CodeQL
Unused local variable
* develop: `deprecation_util.py` (formerly `beta_util.py`) (streamlit#5754) Hoist element message data creation out of loop (streamlit#5734) Fail tests when all snapshots are not committed (streamlit#5729) Wrap type in quotes to support lower versions of protobuf (streamlit#5746) Fix py_snowflake for Nightly, Release Candidate & Release (streamlit#5747) Add GitHub Actions configuration to Dependabot (streamlit#5722) Fix snowpark integration test workflow (streamlit#5736)
beta_utiltodeprecation_utilexperimental_methods