Skip to content

Conversation

@harshil21
Copy link
Member

@harshil21 harshil21 commented May 9, 2022

Closes #3008 by changing the import to ContextTypes.DEFAULT_TYPE.

Also use float() in timerbot.py for setting the timer.

TODO:

  • Update the wiki after release of v20.0a1
  • Update transition script for people upgrading from v20.0a0

@harshil21 harshil21 added the ⚙️ type-hinting affected functionality: type-hinting label May 9, 2022
@harshil21 harshil21 added this to the v20.0a1 milestone May 9, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hey there. Relax, I am just a little warning for the maintainers to release directly after merging your PR, otherwise we have broken examples and people might get confused :)

Co-authored-by: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com>
Copy link
Member

@Bibo-Joshi Bibo-Joshi left a comment

Choose a reason for hiding this comment

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

code LGTM. did you check with both pyright and mypy if they can work with the changes? did you try autocompletion also in both VSC + pylance & pycharm?

@Bibo-Joshi Bibo-Joshi merged commit 72c3eb8 into master May 12, 2022
@Bibo-Joshi Bibo-Joshi deleted the fix-type-hint branch May 12, 2022 17:36
@github-actions github-actions bot locked and limited conversation to collaborators May 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

⚙️ type-hinting affected functionality: type-hinting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Type Hinting] Pylance can't infer type of CallbackContext.DEFAULT_TYPE

3 participants