Reverting `UndefinedLike`?
See original GitHub issueIn https://github.com/altair-viz/altair/pull/2681, we have merged the pull request that
UndefinedLike = Any
Undefined: UndefinedLike = UndefinedType()
But the result now is that the docsctrings looks like this:
I do not think we favor this behavior. Maybe https://github.com/altair-viz/altair/pull/2670 was sufficient already?
Undefined: Any = UndefinedType()
Or will this make the docstrings look like: data: Undefined = Any, encoding: Undefined = Any, etc
?
Issue Analytics
- State:
- Created 10 months ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Javascript !undefined gives true? - Stack Overflow
there are only two possibilities: Javascript throws an error when you try to treat a non-boolean value as boolean ( !undefined → error,...
Read more >Revert GPO Settings to Undefined - Server Fault
I have unlinked the GPOs but of course they have already been applied. Is there a way to undo these changes (not reverse...
Read more >Resetting controls reverts optional props to "undefined" #11976
When selecting an optional value, and then resetting the controls, the value is not removed but instead set to ={undefined} . The inital...
Read more >revert-layer - CSS: Cascading Style Sheets - MDN Web Docs
All cascade layers exist in the author origin. The revert keyword, in comparison, lets you remove styles applied in the author origin and...
Read more >Revert GPO Settings to Undefined - Valuable Tech Notes
Similar to This answer but I'm looking for a way to make the server look & behave as if these settings were never...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks again for the comments here! Let’s hope to have proper type support in the future.
Moreover, if people have a strong knowledgeable opinion on this, #2614 is a good place to discuss this further.
@brahn I was referring to A and I meant modifying the function signature, not the docstring as I wrote initially, sorry about the confusion caused.
@mattijn Nice job digging that up. I agree with you that a solution to fix the issues for now that we can later iterate on if we want to improve the docstring styling is a good idea.
Also, is this only an issue in Google Collab? I just had a look in JupyterLab with the latest master and the docstrings look great, very readable with one parameter per line. I don’t see the typehints though so maybe jupyterlab does not support that yet?
Although is seems like it does for pandas: