Skip to content

Conversation

@AstreaTSS
Copy link
Member

@AstreaTSS AstreaTSS commented Jul 11, 2022

About

This PR properly typehints Storage.get to actually respect defaults properly. Originally, the get function would refuse to consider default for its returning typehint, at least in Visual Studio Code.

EDIT: Turns out Storage.pop was also improperly typehinted in much of the same way. That has also been fixed.

Checklist

  • I've ran pre-commit to format and lint the change(s) made.
  • I've checked to make sure the change(s) work on 3.8.6 and higher.
  • This fixes/solves an Issue.
    • (If existent):
  • I've made this pull request for/as: (check all that apply)
    • Documentation
    • Breaking change
    • New feature/enhancement
    • Bugfix

@AstreaTSS AstreaTSS changed the title fix: properly typehint Storage.get fix: properly typehint Storage.get/pop Jul 11, 2022
@AstreaTSS
Copy link
Member Author

Updated PR to also fix Storage.pop.

@EepyElvyra EepyElvyra merged commit e74fe67 into interactions-py:unstable Jul 11, 2022
@AstreaTSS AstreaTSS deleted the cache-dev-fix branch July 12, 2022 03:50
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.

3 participants