Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Fixes typing error identified by a new mypy release #129

Merged
merged 3 commits into from
Oct 9, 2020
Merged

Fixes typing error identified by a new mypy release #129

merged 3 commits into from
Oct 9, 2020

Conversation

bmc-msft
Copy link
Contributor

@bmc-msft bmc-msft commented Oct 9, 2020

This fixes a build failure from a typing issue where we were sorting an Optional[Datetime], which is not directly sortable.

This was discovered during an update to mypy, which included a new typeshed that supports checks if list.sort arguments are sortable.

@bmc-msft
Copy link
Contributor Author

bmc-msft commented Oct 9, 2020

The new feature to typeshed was introduced in this PR: python/typeshed#4155

@bmc-msft bmc-msft merged commit 1398285 into microsoft:main Oct 9, 2020
@bmc-msft bmc-msft deleted the fix-new-typeshed-sorting branch October 9, 2020 20:45
@ghost ghost locked as resolved and limited conversation to collaborators Apr 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants