Bump mypy from 0.950 to 0.960 (#3070)

* Bump mypy from 0.950 to 0.960

Bumps [mypy](https://github.com/python/mypy) from 0.950 to 0.960.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.950...v0.960)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* update pre-commit as well

* fix type hint for CIRHandler.collect_additional_context

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2022-06-02 10:08:15 +02:00 committed by GitHub
parent 306cc64170
commit 977d56ab43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ repos:
- cachetools~=5.0.0 - cachetools~=5.0.0
- . # this basically does `pip install -e .` - . # this basically does `pip install -e .`
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.950 rev: v0.960
hooks: hooks:
- id: mypy - id: mypy
name: mypy-ptb name: mypy-ptb

View file

@ -6,7 +6,7 @@ pre-commit
black==22.3.0 black==22.3.0
flake8==4.0.1 flake8==4.0.1
pylint==2.13.9 pylint==2.13.9
mypy==0.950 mypy==0.960
pyupgrade==2.32.1 pyupgrade==2.32.1
isort==5.10.1 isort==5.10.1

View file

@ -29,7 +29,7 @@ from telegram.ext._utils.types import CCT, HandlerCallback
RT = TypeVar("RT") RT = TypeVar("RT")
if TYPE_CHECKING: if TYPE_CHECKING:
from telegram.ext import Application, CallbackContext from telegram.ext import Application
class ChosenInlineResultHandler(BaseHandler[Update, CCT]): class ChosenInlineResultHandler(BaseHandler[Update, CCT]):
@ -108,7 +108,7 @@ class ChosenInlineResultHandler(BaseHandler[Update, CCT]):
def collect_additional_context( def collect_additional_context(
self, self,
context: "CallbackContext", context: CCT,
update: Update, update: Update,
application: "Application", application: "Application",
check_result: Union[bool, Match], check_result: Union[bool, Match],