mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
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:
parent
306cc64170
commit
977d56ab43
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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],
|
||||||
|
|
Loading…
Reference in a new issue