Skip to content

Conversation

@loicdiridollou
Copy link
Member

Copy link
Contributor

@cmp0xff cmp0xff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just managed to review pandas-stubs/core/indexes/interval.pyi. Will check the other two files later.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can verify that the changes correctly correspond to https://pandas.pydata.org/docs/dev/reference/api/pandas.interval_range.html.

Comment on lines 325 to 326
*,
start: None = None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it be the following?

Suggested change
*,
start: None = None,
start: None = None,
*,

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this overload is meant to force the user to pass start, same for the one you also commented on.
It will work at least from the tests that I have run, I have pushed, let me know if you want to revert.

Comment on lines 344 to 345
*,
start: None = None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it be the following?

Suggested change
*,
start: None = None,
start: None = None,
*,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

More defaults need to be set

2 participants