-
Notifications
You must be signed in to change notification settings - Fork 371
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
Add view
kwarg to first
and last
#2951
Conversation
to one line as before
It would be good to have an |
My experience is that it will be problematic, but we can check :). |
I didn't clearly understand the working of |
In our case here the question is if compiler is able to determine that when you do not pass So just check if
and both results are expected and optimal. By default compiler knows that the returned value will have |
Yes, that throws an error. |
I have pushed changes that should make it |
Yes - my fix works. |
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.
Looks good (subject to wording of docstrings, which @nalimilan is better at checking than me)
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.
Thanks!
Thank you! |
Please look at this, I've added
view
(defaults to false) kwarg tofirst
andlast
. Also added tests to check for checking types of the results that were returned by the above functions. #2845