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

Fixes typing error identified by a new mypy release#129

Merged
bmc-msft merged 3 commits into
microsoft:mainfrom
bmc-msft:fix-new-typeshed-sorting
Oct 9, 2020
Merged

Fixes typing error identified by a new mypy release#129
bmc-msft merged 3 commits into
microsoft:mainfrom
bmc-msft:fix-new-typeshed-sorting

Conversation

@bmc-msft

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

Copy link
Copy Markdown
Contributor

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

bmc-msft commented Oct 9, 2020

Copy link
Copy Markdown
Contributor Author

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

Comment thread src/api-service/__app__/onefuzzlib/task_event.py Outdated
Comment thread src/api-service/__app__/onefuzzlib/task_event.py Outdated
Comment thread src/api-service/__app__/onefuzzlib/task_event.py
@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