Skip to content

Improve typing deck_due_tree() - #3003

Merged
dae merged 2 commits into
ankitects:mainfrom
nix6839:improve-typing
Feb 12, 2024
Merged

dae merged 2 commits into
ankitects:mainfrom
nix6839:improve-typing

Conversation

@nix6839

@nix6839 nix6839 commented Feb 10, 2024

Copy link
Copy Markdown
Contributor

I have improved the typing for mw.col.sched.deck_due_tree() by using overloading to specify that it will return None only when top_deck_id is received as a DeckId type.

@dae

dae commented Feb 11, 2024

Copy link
Copy Markdown
Member

Thanks!

@dae

dae commented Feb 11, 2024

Copy link
Copy Markdown
Member

(sorry, the CONTRIBUTORS file has a conflict - would you mind rebasing over main?)

@nix6839

nix6839 commented Feb 11, 2024

Copy link
Copy Markdown
Contributor Author

I've rebased it. Thank you so much for creating such an awesome app!

@dae
dae merged commit 9ba527a into ankitects:main Feb 12, 2024
@nix6839
nix6839 deleted the improve-typing branch February 12, 2024 05:57
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.

2 participants