-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
ENH: Added display modes for show_runtime
#26255
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
base: main
Are you sure you want to change the base?
Conversation
6e3b392
to
f1d6df9
Compare
f1d6df9
to
d55c7ce
Compare
d55c7ce
to
52f335a
Compare
@@ -633,7 +634,7 @@ test: PytestTester | ||
# | ||
# Placeholders for classes | ||
|
||
def show_config() -> None: ... | ||
def show_config(mode: ConfigDisplayModes) -> None | dict: ... |
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.
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.
Should we add some tests?
The answer to that question is pretty much always "yes, if they are not slow and complicated"
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.
I'll take this up in a following PR. It's a bit hard to navigate the typing
tests.
@ganesh-k13 will you be continuing with this? |
@mattip , I'll pick it up this weekend. Got a bit busy lately. |
Additionally created a util file for common functions between `show_config` and `show_runtime`
52f335a
to
525373d
Compare
Changes
show_runtime
Allowed modes are same as
show_config
`dicts` mode
`stdout` mode (default)
ToDo
Notes
resolves: https://mail.python.org/archives/list/numpy-discussion@python.org/thread/NF7ET6O5ELCLXGEIN7P2AUO5S4MESMSK/