Skip to content

Conversation

@crusaderky
Copy link

No description provided.

- types-docutils
- types-PyYAML
- types-requests
- types-setuptools
Copy link
Author

Choose a reason for hiding this comment

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

align to dask/distributed

@github-actions github-actions bot added the array label Mar 31, 2022
@crusaderky crusaderky mentioned this pull request Mar 31, 2022
3 tasks
return np.percentile(a, q, interpolation=method)


if _numpy_120:
Copy link
Owner

Choose a reason for hiding this comment

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

really thankful you knew to this.

index = tuple(
slice(k, k + 1) if isinstance(k, Number) else k # type: ignore
for k in index
)
Copy link
Owner

Choose a reason for hiding this comment

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

this is much more elegant.

@phobson phobson merged commit 4546f94 into phobson:mypy Mar 31, 2022
@crusaderky crusaderky deleted the mypy branch March 31, 2022 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants