galtimur commited on
Commit
7b3443e
1 Parent(s): 7b61cd4

filtered acording working benchmark

Browse files
data/405ef2c.json DELETED
The diff for this file is too large to render. See raw diff
 
data/497baa8.json DELETED
@@ -1 +0,0 @@
1
- {"language": "Python", "id": 9, "repo_owner": "python-telegram-bot", "repo_name": "python-telegram-bot", "head_branch": "api-7.0", "workflow_name": "Check Type Completeness", "workflow_filename": "type_completeness.yml", "workflow_path": ".github/workflows/type_completeness.yml", "contributor": "python-telegram-bot", "sha_fail": "497baa821ab70a8a2e39d2479e451de1b4f855bc", "sha_success": "bf635f7d4182eec7a691ee58b0bbc8bb965b13c2", "workflow": "name: Check Type Completeness\non:\n pull_request:\n branches:\n - master\n push:\n branches:\n - master\n\njobs:\n test-type-completeness:\n name: test-type-completeness\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - run: git fetch --depth=1 # https://github.com/actions/checkout/issues/329#issuecomment-674881489\n - name: Set up Python ${{ matrix.python-version }}\n uses: actions/setup-python@v4\n with:\n python-version: 3.9\n cache: 'pip'\n cache-dependency-path: '**/requirements*.txt'\n - name: Install Pyright\n run: |\n python -W ignore -m pip install pyright~=1.1.316\n - name: Get PR Completeness\n # Must run before base completeness, as base completeness will checkout the base branch\n # And we can't go back to the PR branch after that in case the PR is coming from a fork\n run: |\n pip install . -U\n pyright --verifytypes telegram --ignoreexternal --outputjson > pr.json || true\n pyright --verifytypes telegram --ignoreexternal > pr.readable || true\n - name: Get Base Completeness\n run: |\n git checkout ${{ github.base_ref }}\n pip install . -U\n pyright --verifytypes telegram --ignoreexternal --outputjson > base.json || true\n - name: Compare Completeness\n uses: jannekem/run-python-script-action@v1\n with:\n script: |\n import json\n import os\n from pathlib import Path\n\n base = float(\n json.load(open(\"base.json\", \"rb\"))[\"typeCompleteness\"][\"completenessScore\"]\n )\n pr = float(\n json.load(open(\"pr.json\", \"rb\"))[\"typeCompleteness\"][\"completenessScore\"]\n )\n base_text = f\"This PR changes type completeness from {round(base, 3)} to {round(pr, 3)}.\"\n \n if base == 0:\n text = f\"Something is broken in the workflow. Reported type completeness is 0. \ud83d\udca5\"\n set_summary(text)\n print(Path(\"pr.readable\").read_text(encoding=\"utf-8\"))\n error(text)\n exit(1)\n \n if pr < (base - 0.001):\n text = f\"{base_text} \u274c\"\n set_summary(text)\n print(Path(\"pr.readable\").read_text(encoding=\"utf-8\"))\n error(text)\n exit(1)\n elif pr > (base + 0.001):\n text = f\"{base_text} \u2728\"\n set_summary(text)\n if pr < 1:\n print(Path(\"pr.readable\").read_text(encoding=\"utf-8\"))\n print(text)\n else:\n text = f\"{base_text} This is less than 0.1 percentage points. \u2705\"\n set_summary(text)\n print(Path(\"pr.readable\").read_text(encoding=\"utf-8\"))\n print(text)\n", "logs": [{"step_name": "test-type-completeness/8_Compare Completeness.txt", "log": "##[group]Run jannekem/run-python-script-action@v1\nwith:\n script: import json\n \"rb\"))[\"typeCompleteness\"][\"completenessScore\"]\nrb\"))[\"typeCompleteness\"][\"completenessScore\"]\n type completeness from {round(base, 3)} to {round(pr, 3)}.\"\nken in the workflow. Reported type completeness is 0. \ud83d\udca5\"\n.read_text(encoding=\"utf-8\"))\n.read_text(encoding=\"utf-8\"))\nle\").read_text(encoding=\"utf-8\"))\n is less than 0.1 percentage points. \u2705\"\n.read_text(encoding=\"utf-8\"))\n fail-on-error: true\n util: true\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n##[endgroup]\n[command]/opt/hostedtoolcache/Python/3.9.18/x64/bin/python /tmp/tmp-1917-L3j5u176j7ba-.py\nModule name: \"telegram\"\nPackage directory: \"file:///opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram\"\nModule directory: \"file:///opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram\"\nPath of py.typed file: \"file:///opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/py.typed\"\n\nPublic modules: 9\n telegram\n telegram.__main__\n telegram.constants\n telegram.error\n telegram.ext\n telegram.ext.filters\n telegram.helpers\n telegram.request\n telegram.warnings\n\nSymbols used in public interface:\ntelegram._callbackquery.CallbackQuery.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_callbackquery.py:116:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message | None\"\ntelegram._message.Message.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_message.py:747:9 - error: Type of parameter \"link_preview_options\" is partially unknown\n \u00a0\u00a0Parameter type is \"LinkPreviewOptions | None\"\ntelegram._linkpreviewoptions.LinkPreviewOptions.is_disabled\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_linkpreviewoptions.py:89:14 - error: Type is missing type annotation and could be inferred differently by type checkers\n \u00a0\u00a0Inferred type is \"bool | None\"\ntelegram._linkpreviewoptions.LinkPreviewOptions.url\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_linkpreviewoptions.py:90:14 - error: Type is missing type annotation and could be inferred differently by type checkers\n \u00a0\u00a0Inferred type is \"str | None\"\ntelegram._linkpreviewoptions.LinkPreviewOptions.prefer_small_media\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_linkpreviewoptions.py:91:14 - error: Type is missing type annotation and could be inferred differently by type checkers\n \u00a0\u00a0Inferred type is \"bool | None\"\ntelegram._linkpreviewoptions.LinkPreviewOptions.prefer_large_media\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_linkpreviewoptions.py:92:14 - error: Type is missing type annotation and could be inferred differently by type checkers\n \u00a0\u00a0Inferred type is \"bool | None\"\ntelegram._linkpreviewoptions.LinkPreviewOptions.show_above_text\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_linkpreviewoptions.py:93:14 - error: Type is missing type annotation and could be inferred differently by type checkers\n \u00a0\u00a0Inferred type is \"bool | None\"\ntelegram._update.Update.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_update.py:235:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message | None\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_update.py:235:9 - error: Type of parameter \"edited_message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message | None\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_update.py:235:9 - error: Type of parameter \"channel_post\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message | None\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_update.py:235:9 - error: Type of parameter \"edited_channel_post\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message | None\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/_update.py:235:9 - error: Type of parameter \"callback_query\" is partially unknown\n \u00a0\u00a0Parameter type is \"CallbackQuery | None\"\ntelegram._update.Update.effective_message\n error: Return type is partially unknown\n \u00a0\u00a0Return type is \"Message | None\"\ntelegram.ext._application.Application.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_application.py:275:9 - error: Type of parameter \"context_types\" is partially unknown\n \u00a0\u00a0Parameter type is \"ContextTypes[CCT@Application, UD@Application, CD@Application, BD@Application]\"\ntelegram.ext._callbackcontext.CallbackContext.drop_callback_data\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_callbackcontext.py:248:9 - error: Type of parameter \"callback_query\" is partially unknown\n \u00a0\u00a0Parameter type is \"CallbackQuery\"\ntelegram.ext._contexttypes.ContextTypes.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_contexttypes.py:199:9 - error: Type of parameter \"context\" is partially unknown\n \u00a0\u00a0Parameter type is \"type[CallbackContext[ExtBot[Any], ADict, ADict, ADict]]\"\ntelegram.ext._application.Application.builder\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_application.py:448:9 - error: Return type is partially unknown\n \u00a0\u00a0Return type is \"InitApplicationBuilder\"\ntelegram.ext._applicationbuilder.ApplicationBuilder.defaults\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_applicationbuilder.py:941:9 - error: Type of parameter \"defaults\" is partially unknown\n \u00a0\u00a0Parameter type is \"Defaults\"\ntelegram.ext._defaults.Defaults.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_defaults.py:87:9 - error: Type of parameter \"link_preview_options\" is partially unknown\n \u00a0\u00a0Parameter type is \"LinkPreviewOptions | None\"\ntelegram.ext._defaults.Defaults.link_preview_options\n error: Return type is partially unknown\n \u00a0\u00a0Return type is \"LinkPreviewOptions | None\"\ntelegram.ext._applicationbuilder.ApplicationBuilder.context_types\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_applicationbuilder.py:1163:9 - error: Type of parameter \"context_types\" is partially unknown\n \u00a0\u00a0Parameter type is \"ContextTypes[InCCT@context_types, InUD@context_types, InCD@context_types, InBD@context_types]\"\ntelegram.ext._application.Application.migrate_chat_data\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_application.py:1439:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message | None\"\ntelegram.ext._callbackdatacache.CallbackDataCache.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_callbackdatacache.py:153:9 - error: Type of parameter \"bot\" is partially unknown\n \u00a0\u00a0Parameter type is \"ExtBot[Any]\"\ntelegram.ext._extbot.ExtBot.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_extbot.py:204:9 - error: Type of parameter \"defaults\" is partially unknown\n \u00a0\u00a0Parameter type is \"Defaults | None\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_extbot.py:204:9 - error: Type of parameter \"defaults\" is partially unknown\n \u00a0\u00a0Parameter type is \"Defaults | None\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_extbot.py:204:9 - error: Type of parameter \"defaults\" is partially unknown\n \u00a0\u00a0Parameter type is \"Defaults | None\"\ntelegram.ext._extbot.ExtBot.defaults\n error: Return type is partially unknown\n \u00a0\u00a0Return type is \"Defaults | None\"\ntelegram.ext._extbot.ExtBot.insert_callback_data\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_extbot.py:463:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext._extbot.ExtBot.edit_message_text\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_extbot.py:1535:15 - error: Type of parameter \"link_preview_options\" is partially unknown\n \u00a0\u00a0Parameter type is \"ODVInput[LinkPreviewOptions]\"\ntelegram.ext._extbot.ExtBot.send_message\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_extbot.py:2715:15 - error: Type of parameter \"link_preview_options\" is partially unknown\n \u00a0\u00a0Parameter type is \"ODVInput[LinkPreviewOptions]\"\ntelegram.ext._extbot.ExtBot.sendMessage\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_extbot.py:3857:5 - error: Type of parameter \"link_preview_options\" is partially unknown\n \u00a0\u00a0Parameter type is \"ODVInput[LinkPreviewOptions]\"\ntelegram.ext._extbot.ExtBot.editMessageText\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_extbot.py:3886:5 - error: Type of parameter \"link_preview_options\" is partially unknown\n \u00a0\u00a0Parameter type is \"ODVInput[LinkPreviewOptions]\"\ntelegram.ext._callbackdatacache.CallbackDataCache.process_message\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_callbackdatacache.py:298:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext._callbackdatacache.CallbackDataCache.process_callback_query\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_callbackdatacache.py:361:9 - error: Type of parameter \"callback_query\" is partially unknown\n \u00a0\u00a0Parameter type is \"CallbackQuery\"\ntelegram.ext._callbackdatacache.CallbackDataCache.drop_data\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_callbackdatacache.py:407:9 - error: Type of parameter \"callback_query\" is partially unknown\n \u00a0\u00a0Parameter type is \"CallbackQuery\"\ntelegram.ext._callbackqueryhandler.CallbackQueryHandler.collect_additional_context\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_callbackqueryhandler.py:159:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_callbackqueryhandler.py:159:9 - error: Type of parameter \"application\" is partially unknown\n \u00a0\u00a0Parameter type is \"Application[Any, CCT@CallbackQueryHandler, Any, Any, Any, Any]\"\ntelegram.ext._choseninlineresulthandler.ChosenInlineResultHandler.collect_additional_context\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_choseninlineresulthandler.py:109:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_choseninlineresulthandler.py:109:9 - error: Type of parameter \"application\" is partially unknown\n \u00a0\u00a0Parameter type is \"Application[Any, CCT@ChosenInlineResultHandler, Any, Any, Any, Any]\"\ntelegram.ext._commandhandler.CommandHandler.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_commandhandler.py:120:9 - error: Type of parameter \"filters\" is partially unknown\n \u00a0\u00a0Parameter type is \"BaseFilter | None\"\ntelegram.ext.filters.BaseFilter.check_update\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:260:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext._commandhandler.CommandHandler.collect_additional_context\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_commandhandler.py:207:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_commandhandler.py:207:9 - error: Type of parameter \"application\" is partially unknown\n \u00a0\u00a0Parameter type is \"Application[Any, CCT@CommandHandler, Any, Any, Any, Any]\"\ntelegram.ext._conversationhandler.ConversationHandler.handle_update\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_conversationhandler.py:813:15 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_conversationhandler.py:813:15 - error: Type of parameter \"application\" is partially unknown\n \u00a0\u00a0Parameter type is \"Application[Any, CCT@ConversationHandler, Any, Any, Any, Any]\"\ntelegram.ext._inlinequeryhandler.InlineQueryHandler.collect_additional_context\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_inlinequeryhandler.py:130:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_inlinequeryhandler.py:130:9 - error: Type of parameter \"application\" is partially unknown\n \u00a0\u00a0Parameter type is \"Application[Any, CCT@InlineQueryHandler, Any, Any, Any, Any]\"\ntelegram.ext._messagehandler.MessageHandler.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_messagehandler.py:77:9 - error: Type of parameter \"filters\" is partially unknown\n \u00a0\u00a0Parameter type is \"BaseFilter\"\ntelegram.ext._messagehandler.MessageHandler.collect_additional_context\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_messagehandler.py:102:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_messagehandler.py:102:9 - error: Type of parameter \"application\" is partially unknown\n \u00a0\u00a0Parameter type is \"Application[Any, CCT@MessageHandler, Any, Any, Any, Any]\"\ntelegram.ext._picklepersistence.PicklePersistence.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_picklepersistence.py:223:9 - error: Type of parameter \"context_types\" is partially unknown\n \u00a0\u00a0Parameter type is \"ContextTypes[Any, UD@PicklePersistence, CD@PicklePersistence, BD@PicklePersistence] | None\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_picklepersistence.py:223:9 - error: Type of parameter \"context_types\" is partially unknown\n \u00a0\u00a0Parameter type is \"ContextTypes[Any, UD@PicklePersistence, CD@PicklePersistence, BD@PicklePersistence] | None\"\ntelegram.ext._prefixhandler.PrefixHandler.__init__\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_prefixhandler.py:125:9 - error: Type of parameter \"filters\" is partially unknown\n \u00a0\u00a0Parameter type is \"BaseFilter | None\"\ntelegram.ext._prefixhandler.PrefixHandler.collect_additional_context\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_prefixhandler.py:171:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_prefixhandler.py:171:9 - error: Type of parameter \"application\" is partially unknown\n \u00a0\u00a0Parameter type is \"Application[Any, CCT@PrefixHandler, Any, Any, Any, Any]\"\ntelegram.ext._stringcommandhandler.StringCommandHandler.collect_additional_context\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_stringcommandhandler.py:98:9 - error: Type of parameter \"application\" is partially unknown\n \u00a0\u00a0Parameter type is \"Application[Any, CCT@StringCommandHandler, Any, Any, Any, Any]\"\ntelegram.ext._stringregexhandler.StringRegexHandler.collect_additional_context\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/_stringregexhandler.py:103:9 - error: Type of parameter \"application\" is partially unknown\n \u00a0\u00a0Parameter type is \"Application[Any, CCT@StringRegexHandler, Any, Any, Any, Any]\"\ntelegram.ext.filters.MessageFilter\n error: Type of base class \"telegram.ext.filters.BaseFilter\" is partially unknown\ntelegram.ext.filters.MessageFilter.check_update\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:296:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters.MessageFilter.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:314:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.UpdateFilter\n error: Type of base class \"telegram.ext.filters.BaseFilter\" is partially unknown\ntelegram.ext.filters.UpdateFilter.check_update\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:338:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters.UpdateFilter.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:353:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters._All\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._All.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:515:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Animation\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Animation.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:526:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Attachment\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Attachment.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:537:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Audio\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Audio.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:550:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Caption\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Caption.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:579:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.CaptionEntity\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.CaptionEntity.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:613:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.CaptionRegex\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.CaptionRegex.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:644:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Chat\n error: Type of base class \"telegram.ext.filters._ChatUserBaseFilter\" is partially unknown\ntelegram.ext.filters._ChatUserBaseFilter\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._ChatUserBaseFilter.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:794:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Chat\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Chat.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:876:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.ChatType._Channel\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.ChatType._Channel.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:900:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.ChatType._Group\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.ChatType._Group.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:909:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.ChatType._Groups\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.ChatType._Groups.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:918:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.ChatType._Private\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.ChatType._Private.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:927:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.ChatType._SuperGroup\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.ChatType._SuperGroup.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:936:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Command\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Command.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:969:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Contact\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Contact.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:992:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Dice\n error: Type of base class \"telegram.ext.filters._Dice\" is partially unknown\ntelegram.ext.filters._Dice\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Dice.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1017:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Dice.Basketball\n error: Type of base class \"telegram.ext.filters._Dice\" is partially unknown\ntelegram.ext.filters.Dice.Bowling\n error: Type of base class \"telegram.ext.filters._Dice\" is partially unknown\ntelegram.ext.filters.Dice.Darts\n error: Type of base class \"telegram.ext.filters._Dice\" is partially unknown\ntelegram.ext.filters.Dice.Dice\n error: Type of base class \"telegram.ext.filters._Dice\" is partially unknown\ntelegram.ext.filters.Dice.Football\n error: Type of base class \"telegram.ext.filters._Dice\" is partially unknown\ntelegram.ext.filters.Dice.SlotMachine\n error: Type of base class \"telegram.ext.filters._Dice\" is partially unknown\ntelegram.ext.filters.Document._All\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Document._All.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1174:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Document.Category\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Document.Category.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1202:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Document.FileExtension\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Document.FileExtension.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1266:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Document.MimeType\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Document.MimeType.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1298:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Entity\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Entity.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1357:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Forwarded\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Forwarded.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1364:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.ForwardedFrom\n error: Type of base class \"telegram.ext.filters._ChatUserBaseFilter\" is partially unknown\ntelegram.ext.filters._Game\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Game.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1443:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Giveaway\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Giveaway.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1454:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._GiveawayWinners\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._GiveawayWinners.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1465:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._HasMediaSpoiler\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._HasMediaSpoiler.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1476:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._HasProtectedContent\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._HasProtectedContent.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1490:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Invoice\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Invoice.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1504:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._IsAutomaticForward\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._IsAutomaticForward.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1515:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._IsTopicMessage\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._IsTopicMessage.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1529:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Language\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Language.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1569:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Location\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Location.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1580:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Mention\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Mention.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1651:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._PassportData\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._PassportData.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1658:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Photo\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Photo.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1669:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Poll\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Poll.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1680:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Regex\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Regex.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1729:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Reply\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Reply.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1738:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.SenderChat\n error: Type of base class \"telegram.ext.filters._ChatUserBaseFilter\" is partially unknown\ntelegram.ext.filters._SenderChat\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._SenderChat.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1749:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.SenderChat._SUPERGROUP\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.SenderChat._SUPERGROUP.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1817:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.SenderChat._CHANNEL\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.SenderChat._CHANNEL.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1809:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._All\n error: Type of base class \"telegram.ext.filters.UpdateFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._All.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1869:13 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters.StatusUpdate._ChatCreated\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._ChatCreated.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1906:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._ChatShared\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._ChatShared.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1921:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._ConnectedWebsite\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._ConnectedWebsite.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1933:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._DeleteChatPhoto\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._DeleteChatPhoto.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1942:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._ForumTopicClosed\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._ForumTopicClosed.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1951:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._ForumTopicCreated\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._ForumTopicCreated.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1963:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._ForumTopicEdited\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._ForumTopicEdited.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1975:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._ForumTopicReopened\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._ForumTopicReopened.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1987:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._GeneralForumTopicHidden\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._GeneralForumTopicHidden.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:1999:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._GeneralForumTopicUnhidden\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._GeneralForumTopicUnhidden.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2013:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._GiveawayCreated\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._GiveawayCreated.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2027:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._GiveawayCompleted\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._GiveawayCompleted.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2039:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._LeftChatMember\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._LeftChatMember.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2050:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._MessageAutoDeleteTimerChanged\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._MessageAutoDeleteTimerChanged.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2059:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._Migrate\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._Migrate.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2073:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._NewChatMembers\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._NewChatMembers.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2083:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._NewChatPhoto\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._NewChatPhoto.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2092:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._NewChatTitle\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._NewChatTitle.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2101:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._PinnedMessage\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._PinnedMessage.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2110:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._ProximityAlertTriggered\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._ProximityAlertTriggered.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2119:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._UserShared\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._UserShared.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2130:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._VideoChatEnded\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._VideoChatEnded.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2142:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._VideoChatScheduled\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._VideoChatScheduled.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2156:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._VideoChatStarted\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._VideoChatStarted.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2170:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._VideoChatParticipantsInvited\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._VideoChatParticipantsInvited.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2184:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._WebAppData\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._WebAppData.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2200:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.StatusUpdate._WriteAccessAllowed\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.StatusUpdate._WriteAccessAllowed.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2212:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Sticker._All\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Sticker._All.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2238:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Sticker._Animated\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Sticker._Animated.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2247:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Sticker._Static\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Sticker._Static.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2260:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Sticker._Video\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Sticker._Video.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2276:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Sticker._Premium\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Sticker._Premium.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2289:13 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Story\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Story.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2306:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._SuccessfulPayment\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._SuccessfulPayment.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2320:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.Text\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters.Text.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2363:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.UpdateType._ChannelPost\n error: Type of base class \"telegram.ext.filters.UpdateFilter\" is partially unknown\ntelegram.ext.filters.UpdateType._ChannelPost.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2395:13 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters.UpdateType._ChannelPosts\n error: Type of base class \"telegram.ext.filters.UpdateFilter\" is partially unknown\ntelegram.ext.filters.UpdateType._ChannelPosts.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2404:13 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters.UpdateType._Edited\n error: Type of base class \"telegram.ext.filters.UpdateFilter\" is partially unknown\ntelegram.ext.filters.UpdateType._Edited.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2414:13 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters.UpdateType._EditedChannelPost\n error: Type of base class \"telegram.ext.filters.UpdateFilter\" is partially unknown\ntelegram.ext.filters.UpdateType._EditedChannelPost.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2427:13 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters.UpdateType._EditedMessage\n error: Type of base class \"telegram.ext.filters.UpdateFilter\" is partially unknown\ntelegram.ext.filters.UpdateType._EditedMessage.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2436:13 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters.UpdateType._Message\n error: Type of base class \"telegram.ext.filters.UpdateFilter\" is partially unknown\ntelegram.ext.filters.UpdateType._Message.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2445:13 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters.UpdateType._Messages\n error: Type of base class \"telegram.ext.filters.UpdateFilter\" is partially unknown\ntelegram.ext.filters.UpdateType._Messages.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2454:13 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters.User\n error: Type of base class \"telegram.ext.filters._ChatUserBaseFilter\" is partially unknown\ntelegram.ext.filters._User\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._User.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2544:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._UserAttachment\n error: Type of base class \"telegram.ext.filters.UpdateFilter\" is partially unknown\ntelegram.ext.filters._UserAttachment.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2555:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters._UserPremium\n error: Type of base class \"telegram.ext.filters.UpdateFilter\" is partially unknown\ntelegram.ext.filters._UserPremium.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2573:9 - error: Type of parameter \"update\" is partially unknown\n \u00a0\u00a0Parameter type is \"Update\"\ntelegram.ext.filters._Venue\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Venue.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2590:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters.ViaBot\n error: Type of base class \"telegram.ext.filters._ChatUserBaseFilter\" is partially unknown\ntelegram.ext.filters._ViaBot\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._ViaBot.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2680:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Video\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Video.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2691:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._VideoNote\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._VideoNote.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2702:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.ext.filters._Voice\n error: Type of base class \"telegram.ext.filters.MessageFilter\" is partially unknown\ntelegram.ext.filters._Voice.filter\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/ext/filters.py:2713:9 - error: Type of parameter \"message\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message\"\ntelegram.helpers.effective_message_type\n /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/telegram/helpers.py:113:5 - error: Type of parameter \"entity\" is partially unknown\n \u00a0\u00a0Parameter type is \"Message | Update\"\n\nSymbols exported by \"telegram\": 809\n With known type: 628\n With ambiguous type: 181\n With unknown type: 0\n (Ignoring unknown types imported from other packages)\n\nOther symbols referenced but not exported by \"telegram\": 2760\n With known type: 2521\n With ambiguous type: 239\n With unknown type: 0\n\nSymbols without documentation:\n Functions without docstring: 210\n Functions without default param: 0\n Classes without docstring: 81\n\nType completeness score: 77.6%\n\nCompleted in 3.259sec\n\n\n##[error]This PR changes type completeness from 1.0 to 0.776. \u274c\n##[error]Error: The process '/opt/hostedtoolcache/Python/3.9.18/x64/bin/python' failed with exit code 1\n"}], "diff": "diff --git a/telegram/_keyboardbutton.py b/telegram/_keyboardbutton.py\nindex fde3a5d6..28f0f500 100644\n--- a/telegram/_keyboardbutton.py\n+++ b/telegram/_keyboardbutton.py\n@@ -24,9 +24,11 @@ from telegram._keyboardbuttonpolltype import KeyboardButtonPollType\n from telegram._keyboardbuttonrequest import KeyboardButtonRequestChat, KeyboardButtonRequestUsers\n from telegram._telegramobject import TelegramObject\n from telegram._utils.types import JSONDict\n-from telegram._utils.warnings import warn\n+from telegram._utils.warnings_transition import (\n+ warn_about_deprecated_arg_return_new_arg,\n+ warn_about_deprecated_attr_in_property,\n+)\n from telegram._webappinfo import WebAppInfo\n-from telegram.warnings import PTBDeprecationWarning\n \n if TYPE_CHECKING:\n from telegram import Bot\n@@ -149,19 +151,8 @@ class KeyboardButton(TelegramObject):\n *,\n api_kwargs: Optional[JSONDict] = None,\n ):\n- if request_users and request_user:\n- raise ValueError(\n- \"Only one of request_user and request_users can be specified, not both.\"\n- )\n- if request_user:\n- warn(\n- \"request_user is deprecated in favor of request_users and will be removed in \"\n- \"future versions.\",\n- PTBDeprecationWarning,\n- stacklevel=2,\n- )\n-\n super().__init__(api_kwargs=api_kwargs)\n+\n # Required\n self.text: str = text\n # Optionals\n@@ -169,7 +160,15 @@ class KeyboardButton(TelegramObject):\n self.request_location: Optional[bool] = request_location\n self.request_poll: Optional[KeyboardButtonPollType] = request_poll\n self.web_app: Optional[WebAppInfo] = web_app\n- self.request_users: Optional[KeyboardButtonRequestUsers] = request_user or request_users\n+ self.request_users: Optional[\n+ KeyboardButtonRequestUsers\n+ ] = warn_about_deprecated_arg_return_new_arg(\n+ deprecated_arg=request_user,\n+ new_arg=request_users,\n+ deprecated_arg_name=\"request_user\",\n+ new_arg_name=\"request_users\",\n+ bot_api_version=\"7.0\",\n+ )\n self.request_chat: Optional[KeyboardButtonRequestChat] = request_chat\n \n self._id_attrs = (\n@@ -192,11 +191,10 @@ class KeyboardButton(TelegramObject):\n .. deprecated:: NEXT.VERSION\n Bot API 7.0 deprecates this attribute in favor of :attr:`request_users`.\n \"\"\"\n- warn(\n- \"request_user is deprecated in favor of request_users and will be removed in future \"\n- \"versions.\",\n- PTBDeprecationWarning,\n- stacklevel=2,\n+ warn_about_deprecated_attr_in_property(\n+ deprecated_attr_name=\"request_user\",\n+ new_attr_name=\"request_users\",\n+ bot_api_version=\"7.0\",\n )\n return self.request_users\n \ndiff --git a/telegram/_keyboardbuttonrequest.py b/telegram/_keyboardbuttonrequest.py\nindex 976d4c30..c7c19aab 100644\n--- a/telegram/_keyboardbuttonrequest.py\n+++ b/telegram/_keyboardbuttonrequest.py\n@@ -23,6 +23,7 @@ from telegram._chatadministratorrights import ChatAdministratorRights\n from telegram._telegramobject import TelegramObject\n from telegram._utils.types import JSONDict\n from telegram._utils.warnings import warn\n+from telegram._utils.warnings_transition import build_deprecation_warning_message\n from telegram.warnings import PTBDeprecationWarning\n \n if TYPE_CHECKING:\n@@ -135,7 +136,12 @@ class KeyboardButtonRequestUser(KeyboardButtonRequestUsers):\n )\n \n warn(\n- \"`KeyboardButtonRequestUser` is deprecated, use `KeyboardButtonRequestUsers` instead.\",\n+ build_deprecation_warning_message(\n+ deprecated_name=\"KeyboardButtonRequestUser\",\n+ new_name=\"KeyboardButtonRequestUsers\",\n+ object_type=\"class\",\n+ bot_api_version=\"7.0\",\n+ ),\n PTBDeprecationWarning,\n stacklevel=2,\n )\ndiff --git a/telegram/_linkpreviewoptions.py b/telegram/_linkpreviewoptions.py\nindex 69a8ffef..373797b3 100644\n--- a/telegram/_linkpreviewoptions.py\n+++ b/telegram/_linkpreviewoptions.py\n@@ -86,11 +86,11 @@ class LinkPreviewOptions(TelegramObject):\n \n # Optionals\n \n- self.is_disabled = is_disabled\n- self.url = url\n- self.prefer_small_media = prefer_small_media\n- self.prefer_large_media = prefer_large_media\n- self.show_above_text = show_above_text\n+ self.is_disabled: Optional[bool] = is_disabled\n+ self.url: Optional[str] = url\n+ self.prefer_small_media: Optional[bool] = prefer_small_media\n+ self.prefer_large_media: Optional[bool] = prefer_large_media\n+ self.show_above_text: Optional[bool] = show_above_text\n \n self._id_attrs = (\n self.is_disabled,\ndiff --git a/telegram/_message.py b/telegram/_message.py\nindex bb9301c6..f5a91f51 100644\n--- a/telegram/_message.py\n+++ b/telegram/_message.py\n@@ -69,6 +69,10 @@ from telegram._utils.types import (\n ReplyMarkup,\n )\n from telegram._utils.warnings import warn\n+from telegram._utils.warnings_transition import (\n+ build_deprecation_warning_message,\n+ warn_about_deprecated_attr_in_property,\n+)\n from telegram._videochat import (\n VideoChatEnded,\n VideoChatParticipantsInvited,\n@@ -831,8 +835,12 @@ class Message(TelegramObject):\n \n if user_shared:\n warn(\n- \"`user_shared` is deprecated in favor of `users_shared and will be removed in \"\n- \"future versions.\",\n+ build_deprecation_warning_message(\n+ deprecated_name=\"user_shared\",\n+ new_name=\"users_shared\",\n+ object_type=\"parameter\",\n+ bot_api_version=\"7.0\",\n+ ),\n PTBDeprecationWarning,\n stacklevel=2,\n )\n@@ -948,11 +956,10 @@ class Message(TelegramObject):\n .. deprecated:: NEXT.VERSION\n Bot API 7.0 deprecates :attr:`user_shared` in favor of :attr:`users_shared`.\n \"\"\"\n- warn(\n- \"`user_shared` is deprecated in favor of users_shared and will be removed in future \"\n- \"versions.\",\n- PTBDeprecationWarning,\n- stacklevel=2,\n+ warn_about_deprecated_attr_in_property(\n+ deprecated_attr_name=\"user_shared\",\n+ new_attr_name=\"users_shared\",\n+ bot_api_version=\"7.0\",\n )\n return self._user_shared\n \ndiff --git a/telegram/_shared.py b/telegram/_shared.py\nindex 4b77b2ed..ba174349 100644\n--- a/telegram/_shared.py\n+++ b/telegram/_shared.py\n@@ -22,6 +22,10 @@ from typing import Optional, Sequence, Tuple\n from telegram._telegramobject import TelegramObject\n from telegram._utils.types import JSONDict\n from telegram._utils.warnings import warn\n+from telegram._utils.warnings_transition import (\n+ build_deprecation_warning_message,\n+ warn_about_deprecated_attr_in_property,\n+)\n from telegram.warnings import PTBDeprecationWarning\n \n \n@@ -96,7 +100,12 @@ class UserShared(UsersShared):\n super().__init__(request_id, (user_id,), api_kwargs=api_kwargs)\n \n warn(\n- \"`UserShared` is deprecated, use `UsersShared` instead.\",\n+ build_deprecation_warning_message(\n+ deprecated_name=\"UserShared\",\n+ new_name=\"UsersShared\",\n+ object_type=\"class\",\n+ bot_api_version=\"7.0\",\n+ ),\n PTBDeprecationWarning,\n stacklevel=2,\n )\n@@ -110,12 +119,10 @@ class UserShared(UsersShared):\n .. deprecated:: NEXT.VERSION\n Bot API 7.0 deprecates this attribute in favor of :attr:`UsersShared.user_ids`.\n \"\"\"\n-\n- warn(\n- \"`user_id` is deprecated in favor of `user_ids` and will be removed in future \"\n- \"versions.\",\n- PTBDeprecationWarning,\n- stacklevel=2,\n+ warn_about_deprecated_attr_in_property(\n+ deprecated_attr_name=\"user_id\",\n+ new_attr_name=\"user_ids\",\n+ bot_api_version=\"7.0\",\n )\n return self.user_ids[0]\n \ndiff --git a/telegram/_utils/warnings_transition.py b/telegram/_utils/warnings_transition.py\nindex c3799a12..3caca518 100644\n--- a/telegram/_utils/warnings_transition.py\n+++ b/telegram/_utils/warnings_transition.py\n@@ -29,6 +29,23 @@ from telegram._utils.warnings import warn\n from telegram.warnings import PTBDeprecationWarning\n \n \n+def build_deprecation_warning_message(\n+ deprecated_name: str,\n+ new_name: str,\n+ object_type: str,\n+ bot_api_version: str,\n+) -> str:\n+ \"\"\"Builds a warning message for the transition in API when an object is renamed.\n+\n+ Returns a warning message that can be used in `warn` function.\n+ \"\"\"\n+ return (\n+ f\"The {object_type} '{deprecated_name}' was renamed to '{new_name}' in Bot API \"\n+ f\"{bot_api_version}. We recommend using '{new_name}' instead of \"\n+ f\"'{deprecated_name}'.\"\n+ )\n+\n+\n # Narrower type hints will cause linting errors and/or circular imports.\n # We'll use `Any` here and put type hints in the calling code.\n def warn_about_deprecated_arg_return_new_arg(\n@@ -50,11 +67,15 @@ def warn_about_deprecated_arg_return_new_arg(\n different.\n \"\"\"\n if deprecated_arg and new_arg and deprecated_arg != new_arg:\n+ base_message = build_deprecation_warning_message(\n+ deprecated_name=deprecated_arg_name,\n+ new_name=new_arg_name,\n+ object_type=\"parameter\",\n+ bot_api_version=bot_api_version,\n+ )\n raise ValueError(\n f\"You passed different entities as '{deprecated_arg_name}' and '{new_arg_name}'. \"\n- f\"The parameter '{deprecated_arg_name}' was renamed to '{new_arg_name}' in Bot API \"\n- f\"{bot_api_version}. We recommend using '{new_arg_name}' instead of \"\n- f\"'{deprecated_arg_name}'.\"\n+ f\"{base_message}\"\n )\n \n if deprecated_arg:\ndiff --git a/telegram/ext/_application.py b/telegram/ext/_application.py\nindex 23fd57d4..52ce0332 100644\n--- a/telegram/ext/_application.py\n+++ b/telegram/ext/_application.py\n@@ -1133,7 +1133,7 @@ class Application(Generic[BT, CCT, UD, CD, BD, JQ], AsyncContextManager[\"Applica\n return await asyncio.create_task(coroutine)\n # If user uses generator in python 3.12+, Exception will happen and we cannot do\n # anything about it. (hence the type ignore if mypy is run on python 3.12-)\n- return await coroutine\n+ return await coroutine # type: ignore[misc]\n except Exception as exception:\n if isinstance(exception, ApplicationHandlerStop):\n warn(\ndiff --git a/telegram/ext/filters.py b/telegram/ext/filters.py\nindex e251e2fa..14c7f7cd 100644\n--- a/telegram/ext/filters.py\n+++ b/telegram/ext/filters.py\n@@ -1868,33 +1868,35 @@ class StatusUpdate:\n \n def filter(self, update: Update) -> bool:\n return bool(\n- StatusUpdate.NEW_CHAT_MEMBERS.check_update(update)\n- or StatusUpdate.LEFT_CHAT_MEMBER.check_update(update)\n- or StatusUpdate.NEW_CHAT_TITLE.check_update(update)\n- or StatusUpdate.NEW_CHAT_PHOTO.check_update(update)\n+ # keep this alphabetically sorted for easier maintenance\n+ StatusUpdate.CHAT_CREATED.check_update(update)\n+ or StatusUpdate.CHAT_SHARED.check_update(update)\n+ or StatusUpdate.CONNECTED_WEBSITE.check_update(update)\n or StatusUpdate.DELETE_CHAT_PHOTO.check_update(update)\n- or StatusUpdate.CHAT_CREATED.check_update(update)\n+ or StatusUpdate.FORUM_TOPIC_CLOSED.check_update(update)\n+ or StatusUpdate.FORUM_TOPIC_CREATED.check_update(update)\n+ or StatusUpdate.FORUM_TOPIC_EDITED.check_update(update)\n+ or StatusUpdate.FORUM_TOPIC_REOPENED.check_update(update)\n+ or StatusUpdate.GENERAL_FORUM_TOPIC_HIDDEN.check_update(update)\n+ or StatusUpdate.GENERAL_FORUM_TOPIC_UNHIDDEN.check_update(update)\n+ or StatusUpdate.GIVEAWAY_COMPLETED.check_update(update)\n+ or StatusUpdate.GIVEAWAY_CREATED.check_update(update)\n+ or StatusUpdate.LEFT_CHAT_MEMBER.check_update(update)\n or StatusUpdate.MESSAGE_AUTO_DELETE_TIMER_CHANGED.check_update(update)\n or StatusUpdate.MIGRATE.check_update(update)\n+ or StatusUpdate.NEW_CHAT_MEMBERS.check_update(update)\n+ or StatusUpdate.NEW_CHAT_PHOTO.check_update(update)\n+ or StatusUpdate.NEW_CHAT_TITLE.check_update(update)\n or StatusUpdate.PINNED_MESSAGE.check_update(update)\n- or StatusUpdate.CONNECTED_WEBSITE.check_update(update)\n or StatusUpdate.PROXIMITY_ALERT_TRIGGERED.check_update(update)\n- or StatusUpdate.VIDEO_CHAT_SCHEDULED.check_update(update)\n- or StatusUpdate.VIDEO_CHAT_STARTED.check_update(update)\n+ or StatusUpdate.USERS_SHARED.check_update(update)\n+ or StatusUpdate.USER_SHARED.check_update(update)\n or StatusUpdate.VIDEO_CHAT_ENDED.check_update(update)\n or StatusUpdate.VIDEO_CHAT_PARTICIPANTS_INVITED.check_update(update)\n+ or StatusUpdate.VIDEO_CHAT_SCHEDULED.check_update(update)\n+ or StatusUpdate.VIDEO_CHAT_STARTED.check_update(update)\n or StatusUpdate.WEB_APP_DATA.check_update(update)\n- or StatusUpdate.FORUM_TOPIC_CREATED.check_update(update)\n- or StatusUpdate.FORUM_TOPIC_CLOSED.check_update(update)\n- or StatusUpdate.FORUM_TOPIC_REOPENED.check_update(update)\n- or StatusUpdate.FORUM_TOPIC_EDITED.check_update(update)\n- or StatusUpdate.GENERAL_FORUM_TOPIC_HIDDEN.check_update(update)\n- or StatusUpdate.GENERAL_FORUM_TOPIC_UNHIDDEN.check_update(update)\n or StatusUpdate.WRITE_ACCESS_ALLOWED.check_update(update)\n- or StatusUpdate.USER_SHARED.check_update(update)\n- or StatusUpdate.CHAT_SHARED.check_update(update)\n- or StatusUpdate.GIVEAWAY_CREATED.check_update(update)\n- or StatusUpdate.GIVEAWAY_COMPLETED.check_update(update)\n )\n \n ALL = _All(name=\"filters.StatusUpdate.ALL\")\n@@ -2133,7 +2135,25 @@ class StatusUpdate:\n USER_SHARED = _UserShared(name=\"filters.StatusUpdate.USER_SHARED\")\n \"\"\"Messages that contain :attr:`telegram.Message.user_shared`.\n \n+ Warning:\n+ This will only catch the legacy :attr:`telegram.Message.user_shared` attribute, not the\n+ new :attr:`telegram.Message.users_shared` attribute!\n+\n .. versionadded:: 20.1\n+ .. deprecated:: NEXT.VERSION\n+ User :attr:`USERS_SHARED` instead.\n+ \"\"\"\n+\n+ class _UsersShared(MessageFilter):\n+ __slots__ = ()\n+\n+ def filter(self, message: Message) -> bool:\n+ return bool(message.users_shared)\n+\n+ USERS_SHARED = _UsersShared(name=\"filters.StatusUpdate.USERS_SHARED\")\n+ \"\"\"Messages that contain :attr:`telegram.Message.users_shared`.\n+\n+ .. versionadded:: NEXT.VERSION\n \"\"\"\n \n class _VideoChatEnded(MessageFilter):\ndiff --git a/tests/ext/test_filters.py b/tests/ext/test_filters.py\nindex 4801a25f..d1223b1e 100644\n--- a/tests/ext/test_filters.py\n+++ b/tests/ext/test_filters.py\n@@ -1054,10 +1054,15 @@ class TestFilters:\n assert filters.StatusUpdate.WRITE_ACCESS_ALLOWED.check_update(update)\n update.message.write_access_allowed = None\n \n- update.message.user_shared = \"user_shared\"\n+ update.message._user_shared = \"user_shared\"\n assert filters.StatusUpdate.ALL.check_update(update)\n assert filters.StatusUpdate.USER_SHARED.check_update(update)\n- update.message.user_shared = None\n+ update.message._user_shared = None\n+\n+ update.message.users_shared = \"users_shared\"\n+ assert filters.StatusUpdate.ALL.check_update(update)\n+ assert filters.StatusUpdate.USERS_SHARED.check_update(update)\n+ update.message.users_shared = None\n \n update.message.chat_shared = \"user_shared\"\n assert filters.StatusUpdate.ALL.check_update(update)\ndiff --git a/tests/test_constants.py b/tests/test_constants.py\nindex 591f5b7b..5faf8811 100644\n--- a/tests/test_constants.py\n+++ b/tests/test_constants.py\n@@ -162,6 +162,7 @@ class TestConstantsWithoutRequest:\n \"is_automatic_forward\",\n \"is_topic_message\",\n \"link\",\n+ \"link_preview_options\",\n \"media_group_id\",\n \"message_id\",\n \"message_thread_id\",\ndiff --git a/tests/test_keyboardbutton.py b/tests/test_keyboardbutton.py\nindex 532c1524..f679faa6 100644\n--- a/tests/test_keyboardbutton.py\n+++ b/tests/test_keyboardbutton.py\n@@ -106,21 +106,25 @@ class TestKeyboardButtonWithoutRequest(TestKeyboardButtonBase):\n assert none is None\n \n def test_request_user_deprecation_mutually_exclusive(self):\n- with pytest.raises(ValueError, match=\"Only one of request_user and request_users\"):\n+ with pytest.raises(ValueError, match=\"'request_user' was renamed to 'request_users'\"):\n KeyboardButton(\n \"test\",\n- request_users=KeyboardButtonRequestUsers(2),\n+ request_users=KeyboardButtonRequestUsers(1),\n request_user=KeyboardButtonRequestUsers(2),\n )\n \n def test_request_user_argument_deprecation_warning(self):\n- with pytest.warns(PTBDeprecationWarning, match=\"request_user is deprecated\") as record:\n+ with pytest.warns(\n+ PTBDeprecationWarning, match=\"'request_user' to 'request_users'\"\n+ ) as record:\n KeyboardButton(\"test\", request_user=KeyboardButtonRequestUsers(2))\n \n assert record[0].filename == __file__, \"wrong stacklevel\"\n \n def test_request_user_property_deprecation_warning(self, keyboard_button):\n- with pytest.warns(PTBDeprecationWarning, match=\"request_user is deprecated\") as record:\n+ with pytest.warns(\n+ PTBDeprecationWarning, match=\"'request_user' to 'request_users'\"\n+ ) as record:\n assert keyboard_button.request_user is keyboard_button.request_users\n \n assert record[0].filename == __file__, \"wrong stacklevel\"\ndiff --git a/tests/test_keyboardbuttonrequest.py b/tests/test_keyboardbuttonrequest.py\nindex 92499f22..2a70df24 100644\n--- a/tests/test_keyboardbuttonrequest.py\n+++ b/tests/test_keyboardbuttonrequest.py\n@@ -105,7 +105,10 @@ class TestKeyboardButtonRequestUserWithoutRequest:\n )\n \n def test_deprecation_warning(self):\n- with pytest.warns(PTBDeprecationWarning, match=\"User` is deprecated\") as record:\n+ with pytest.warns(\n+ PTBDeprecationWarning,\n+ match=\"'KeyboardButtonRequestUser' was renamed to 'KeyboardButtonRequestUsers'\",\n+ ) as record:\n KeyboardButtonRequestUser(request_id=1)\n \n assert record[0].filename == __file__, \"wrong stacklevel\"\ndiff --git a/tests/test_message.py b/tests/test_message.py\nindex bba2fd18..6d063968 100644\n--- a/tests/test_message.py\n+++ b/tests/test_message.py\n@@ -480,13 +480,17 @@ class TestMessageWithoutRequest(TestMessageBase):\n assert hash(a) != hash(e)\n \n def test_user_shared_init_deprecation(self, message):\n- with pytest.warns(PTBDeprecationWarning, match=\"`user_shared` is deprecated\") as record:\n+ with pytest.warns(\n+ PTBDeprecationWarning, match=\"'user_shared' was renamed to 'users_shared'\"\n+ ) as record:\n Message(message_id=1, date=self.date, chat=self.chat, user_shared=1)\n \n assert record[0].filename == __file__, \"wrong stacklevel\"\n \n def test_user_shared_property_deprecation(self, message):\n- with pytest.warns(PTBDeprecationWarning, match=\"`user_shared` is deprecated\") as record:\n+ with pytest.warns(\n+ PTBDeprecationWarning, match=\"'user_shared' to 'users_shared'\"\n+ ) as record:\n message.user_shared\n \n assert record[0].filename == __file__, \"wrong stacklevel\"\ndiff --git a/tests/test_shared.py b/tests/test_shared.py\nindex fd2d0e50..1ea98ac5 100644\n--- a/tests/test_shared.py\n+++ b/tests/test_shared.py\n@@ -122,12 +122,14 @@ class TestUserSharedWithoutRequest(TestUsersSharedBase):\n assert set(users_signature.parameters) - set(user_signature.parameters) == {\"user_ids\"}\n \n def test_deprecation_warnings(self):\n- with pytest.warns(PTBDeprecationWarning, match=\"UserShared` is deprecated\") as record:\n+ with pytest.warns(\n+ PTBDeprecationWarning, match=\"'UserShared' was renamed to 'UsersShared'\"\n+ ) as record:\n user_shared = UserShared(request_id=1, user_id=1)\n \n assert record[0].filename == __file__, \"wrong stacklevel\"\n \n- with pytest.warns(PTBDeprecationWarning, match=\"`user_id` is deprecated\") as record:\n+ with pytest.warns(PTBDeprecationWarning, match=\"'user_id' to 'user_ids'\") as record:\n user_shared.user_id\n \n assert record[0].filename == __file__, \"wrong stacklevel\"\n", "difficulty": "2"}
 
 
data/4f43efc.json DELETED
@@ -1 +0,0 @@
1
- {"language": "Python", "id": 15, "repo_owner": "psf", "repo_name": "black", "head_branch": "dummy-change", "workflow_name": "Lint + format ourselves", "workflow_filename": "lint.yml", "workflow_path": ".github/workflows/lint.yml", "contributor": "hauntsaninja", "sha_fail": "4f43efc5b87a54547d9adb269eeae6d66ffc48df", "sha_success": "df1257fd5c0feb2f5ff382f0230ebc40e0d2d76f", "workflow": "name: Lint + format ourselves\n\non: [push, pull_request]\n\njobs:\n build:\n # We want to run on external PRs, but not on our own internal PRs as they'll be run\n # by the push to the branch. Without this if check, checks are duplicated since\n # internal PRs match both the push and pull_request events.\n if:\n github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=\n github.repository\n\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@v4\n\n - name: Assert PR target is main\n if: github.event_name == 'pull_request' && github.repository == 'psf/black'\n run: |\n if [ \"$GITHUB_BASE_REF\" != \"main\" ]; then\n echo \"::error::PR targeting '$GITHUB_BASE_REF', please refile targeting 'main'.\" && exit 1\n fi\n\n - name: Set up latest Python\n uses: actions/setup-python@v5\n with:\n python-version: \"*\"\n\n - name: Install dependencies\n run: |\n python -m pip install --upgrade pip\n python -m pip install -e '.'\n python -m pip install tox\n\n - name: Run pre-commit hooks\n uses: pre-commit/[email protected]\n\n - name: Format ourselves\n run: |\n tox -e run_self\n", "logs": [{"step_name": "build/6_Run pre-commit hooks.txt", "log": "##[group]Run pre-commit/[email protected]\nwith:\n extra_args: --all-files\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\n##[group]Run python -m pip install pre-commit\n\u001b[36;1mpython -m pip install pre-commit\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\nCollecting pre-commit\n Downloading pre_commit-3.6.0-py2.py3-none-any.whl.metadata (1.3 kB)\nCollecting cfgv>=2.0.0 (from pre-commit)\n Downloading cfgv-3.4.0-py2.py3-none-any.whl.metadata (8.5 kB)\nCollecting identify>=1.0.0 (from pre-commit)\n Downloading identify-2.5.33-py2.py3-none-any.whl.metadata (4.4 kB)\nCollecting nodeenv>=0.11.1 (from pre-commit)\n Downloading nodeenv-1.8.0-py2.py3-none-any.whl.metadata (21 kB)\nCollecting pyyaml>=5.1 (from pre-commit)\n Downloading PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)\nRequirement already satisfied: virtualenv>=20.10.0 in /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages (from pre-commit) (20.25.0)\nCollecting setuptools (from nodeenv>=0.11.1->pre-commit)\n Using cached setuptools-69.0.3-py3-none-any.whl.metadata (6.3 kB)\nRequirement already satisfied: distlib<1,>=0.3.7 in /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit) (0.3.8)\nRequirement already satisfied: filelock<4,>=3.12.2 in /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit) (3.13.1)\nRequirement already satisfied: platformdirs<5,>=3.9.1 in /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit) (4.1.0)\nDownloading pre_commit-3.6.0-py2.py3-none-any.whl (204 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 204.0/204.0 kB 4.8 MB/s eta 0:00:00\nDownloading cfgv-3.4.0-py2.py3-none-any.whl (7.2 kB)\nDownloading identify-2.5.33-py2.py3-none-any.whl (98 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 98.9/98.9 kB 26.1 MB/s eta 0:00:00\nDownloading nodeenv-1.8.0-py2.py3-none-any.whl (22 kB)\nDownloading PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (724 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 725.0/725.0 kB 18.4 MB/s eta 0:00:00\nUsing cached setuptools-69.0.3-py3-none-any.whl (819 kB)\nInstalling collected packages: setuptools, pyyaml, identify, cfgv, nodeenv, pre-commit\nSuccessfully installed cfgv-3.4.0 identify-2.5.33 nodeenv-1.8.0 pre-commit-3.6.0 pyyaml-6.0.1 setuptools-69.0.3\n##[group]Run python -m pip freeze --local\n\u001b[36;1mpython -m pip freeze --local\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\n-e git+https://github.com/psf/black@20a6ce49fe0d8bbf88f4953c57c82b697bfdf276#egg=black\ncachetools==5.3.2\ncfgv==3.4.0\nchardet==5.2.0\nclick==8.1.7\ncolorama==0.4.6\ndistlib==0.3.8\nfilelock==3.13.1\nidentify==2.5.33\nmypy-extensions==1.0.0\nnodeenv==1.8.0\npackaging==23.2\npathspec==0.12.1\nplatformdirs==4.1.0\npluggy==1.3.0\npre-commit==3.6.0\npyproject-api==1.6.1\nPyYAML==6.0.1\nsetuptools==69.0.3\ntox==4.11.4\nvirtualenv==20.25.0\n##[group]Run actions/cache@v3\nwith:\n path: ~/.cache/pre-commit\n key: pre-commit-3|/opt/hostedtoolcache/Python/3.12.1/x64|e783ffdd3afdd346f32828fee33795d01f66a4290c54025b0264415f0fc33b79\n enableCrossOsArchive: false\n fail-on-cache-miss: false\n lookup-only: false\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\nCache Size: ~46 MB (48381490 B)\n[command]/usr/bin/tar -xf /home/runner/work/_temp/9713045d-599d-4f7f-9337-3dbcd0ae79b7/cache.tzst -P -C /home/runner/work/black/black --use-compress-program unzstd\nReceived 48381490 of 48381490 (100.0%), 46.1 MBs/sec\nCache restored successfully\nCache restored from key: pre-commit-3|/opt/hostedtoolcache/Python/3.12.1/x64|e783ffdd3afdd346f32828fee33795d01f66a4290c54025b0264415f0fc33b79\n##[group]Run pre-commit run --show-diff-on-failure --color=always --all-files\n\u001b[36;1mpre-commit run --show-diff-on-failure --color=always --all-files\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\nCheck pre-commit rev in example..........................................\u001b[42mPassed\u001b[m\nCheck black version in the basics example................................\u001b[42mPassed\u001b[m\nisort....................................................................\u001b[41mFailed\u001b[m\n\u001b[2m- hook id: isort\u001b[m\n\u001b[2m- files were modified by this hook\u001b[m\n\nFixing /home/runner/work/black/black/src/black/linegen.py\n\nflake8...................................................................\u001b[42mPassed\u001b[m\nmypy.....................................................................\u001b[42mPassed\u001b[m\nprettier.................................................................\u001b[42mPassed\u001b[m\nfix end of files.........................................................\u001b[42mPassed\u001b[m\ntrim trailing whitespace.................................................\u001b[42mPassed\u001b[m\npre-commit hook(s) made changes.\nIf you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`.\nTo run `pre-commit` as part of git workflow, use `pre-commit install`.\nAll changes made by hooks:\n\u001b[1mdiff --git a/src/black/linegen.py b/src/black/linegen.py\u001b[m\n\u001b[1mindex 325b6d8..574c89b 100644\u001b[m\n\u001b[1m--- a/src/black/linegen.py\u001b[m\n\u001b[1m+++ b/src/black/linegen.py\u001b[m\n\u001b[36m@@ -42,12 +42,12 @@\u001b[m \u001b[mfrom black.nodes import (\u001b[m\n is_atom_with_invisible_parens,\u001b[m\n is_docstring,\u001b[m\n is_empty_tuple,\u001b[m\n\u001b[31m- is_parent_function_or_class,\u001b[m\n is_lpar_token,\u001b[m\n is_multiline_string,\u001b[m\n is_name_token,\u001b[m\n is_one_sequence_between,\u001b[m\n is_one_tuple,\u001b[m\n\u001b[32m+\u001b[m\u001b[32m is_parent_function_or_class,\u001b[m\n is_rpar_token,\u001b[m\n is_stub_body,\u001b[m\n is_stub_suite,\u001b[m\n##[error]Process completed with exit code 1.\n"}], "diff": "diff --git a/src/black/linegen.py b/src/black/linegen.py\nindex 325b6d80..574c89b8 100644\n--- a/src/black/linegen.py\n+++ b/src/black/linegen.py\n@@ -42,12 +42,12 @@ from black.nodes import (\n is_atom_with_invisible_parens,\n is_docstring,\n is_empty_tuple,\n- is_parent_function_or_class,\n is_lpar_token,\n is_multiline_string,\n is_name_token,\n is_one_sequence_between,\n is_one_tuple,\n+ is_parent_function_or_class,\n is_rpar_token,\n is_stub_body,\n is_stub_suite,\n", "difficulty": "1"}
 
 
data/715dcdc.json DELETED
@@ -1 +0,0 @@
1
- {"language": "Python", "id": 5, "repo_owner": "huggingface", "repo_name": "diffusers", "head_branch": "main", "workflow_name": "Build PR Documentation", "workflow_filename": "build_pr_documentation.yml", "workflow_path": ".github/workflows/build_pr_documentation.yml", "contributor": "antoine-scenario", "sha_fail": "715dcdc0556e0f5796ac8ed6684995d24a15c093", "sha_success": "eb48d761eefb28e96c27d1dc8041b7851a28937b", "workflow": "name: Build PR Documentation\n\non:\n pull_request:\n\nconcurrency:\n group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}\n cancel-in-progress: true\n\njobs:\n build:\n uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main\n with:\n commit_sha: ${{ github.event.pull_request.head.sha }}\n pr_number: ${{ github.event.number }}\n install_libgl1: true\n package: diffusers\n languages: en ko zh ja pt\n", "logs": [{"step_name": "build build_pr_documentation/11_Make documentation.txt", "log": "##[group]Run echo \"doc_folder has been set to diffusers/docs/source\"\n\u001b[36;1mecho \"doc_folder has been set to diffusers/docs/source\"\u001b[0m\n\u001b[36;1mcd doc-builder\u001b[0m\n\u001b[36;1margs=\"--build_dir ../build_dir --clean --version pr_6293 --html --repo_owner huggingface --repo_name diffusers --version_tag_suffix=src/\"\u001b[0m\n\u001b[36;1m\u001b[0m\n\u001b[36;1mif [ -z \"en ko zh ja pt\" ];\u001b[0m\n\u001b[36;1mthen\u001b[0m\n\u001b[36;1m echo \"languages not provided, defaulting to English\"\u001b[0m\n\u001b[36;1m doc-builder build diffusers ../diffusers/docs/source $args\u001b[0m\n\u001b[36;1melse\u001b[0m\n\u001b[36;1m IFS=', ' read -r -a langs <<< \"en ko zh ja pt\"\u001b[0m\n\u001b[36;1m for lang in \"${langs[@]}\"\u001b[0m\n\u001b[36;1m do\u001b[0m\n\u001b[36;1m echo \"Generating docs for language $lang\"\u001b[0m\n\u001b[36;1m doc-builder build diffusers ../diffusers/docs/source/$lang $args --language $lang\u001b[0m\n\u001b[36;1m done\u001b[0m\n\u001b[36;1mfi\u001b[0m\n\u001b[36;1mcd ..\u001b[0m\nshell: bash --noprofile --norc -e -o pipefail {0}\nenv:\n DIFFUSERS_SLOW_IMPORT: yes\n doc_folder: diffusers/docs/source\n package_name: diffusers\n NODE_OPTIONS: --max-old-space-size=6656\n##[endgroup]\ndoc_folder has been set to diffusers/docs/source\nGenerating docs for language en\nThe cache for model files in Transformers v4.22.0 has been updated. Migrating your old cache. This is a one-time only operation. You can interrupt this and resume the migration later on by calling `transformers.utils.move_cache()`.\nBuilding docs for diffusers ../diffusers/docs/source/en ../build_dir/diffusers/pr_6293/en\n\n0it [00:00, ?it/s]\n0it [00:00, ?it/s]2023-12-22 13:16:26.674137: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\n\nTraceback (most recent call last):\n File \"/usr/local/bin/doc-builder\", line 8, in <module>\n sys.exit(main())\n File \"/usr/local/lib/python3.8/site-packages/doc_builder/commands/doc_builder_cli.py\", line 47, in main\n args.func(args)\n File \"/usr/local/lib/python3.8/site-packages/doc_builder/commands/build.py\", line 102, in build_command\n build_doc(\n File \"/usr/local/lib/python3.8/site-packages/doc_builder/build_doc.py\", line 364, in build_doc\n package = importlib.import_module(package_name) if is_python_module else None\n File \"/usr/local/lib/python3.8/importlib/__init__.py\", line 127, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n File \"<frozen importlib._bootstrap>\", line 1014, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 991, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 975, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 671, in _load_unlocked\n File \"<frozen importlib._bootstrap_external>\", line 843, in exec_module\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"/usr/local/lib/python3.8/site-packages/diffusers/__init__.py\", line 492, in <module>\n from .pipelines import (\n File \"/usr/local/lib/python3.8/site-packages/diffusers/pipelines/__init__.py\", line 314, in <module>\n from .auto_pipeline import (\n File \"/usr/local/lib/python3.8/site-packages/diffusers/pipelines/auto_pipeline.py\", line 22, in <module>\n from .controlnet import (\n File \"/usr/local/lib/python3.8/site-packages/diffusers/pipelines/controlnet/__init__.py\", line 59, in <module>\n from .pipeline_controlnet_sd_xl_img2img import StableDiffusionXLControlNetImg2ImgPipeline\n File \"/usr/local/lib/python3.8/site-packages/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\", line 153, in <module>\n class StableDiffusionXLControlNetImg2ImgPipeline(\n File \"/usr/local/lib/python3.8/site-packages/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\", line 233, in StableDiffusionXLControlNetImg2ImgPipeline\n feature_extractor: CLIPImageProcessor = None,\nNameError: name 'CLIPImageProcessor' is not defined\n##[error]Process completed with exit code 1.\n"}], "diff": "diff --git a/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py b/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\nindex 73adb386d..f5ea3a7c0 100644\n--- a/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\n+++ b/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py\n@@ -20,7 +20,8 @@ import numpy as np\n import PIL.Image\n import torch\n import torch.nn.functional as F\n-from transformers import CLIPTextModel, CLIPTextModelWithProjection, CLIPTokenizer\n+from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTextModelWithProjection, CLIPTokenizer, \\\n+ CLIPVisionModelWithProjection\n \n from diffusers.utils.import_utils import is_invisible_watermark_available\n \n@@ -30,7 +31,7 @@ from ...loaders import (\n TextualInversionLoaderMixin,\n IPAdapterMixin,\n )\n-from ...models import AutoencoderKL, ControlNetModel, UNet2DConditionModel\n+from ...models import AutoencoderKL, ControlNetModel, ImageProjection, UNet2DConditionModel\n from ...models.attention_processor import (\n AttnProcessor2_0,\n LoRAAttnProcessor2_0,\n", "difficulty": "2"}
 
 
data/fb85e3a.json DELETED
@@ -1 +0,0 @@
1
- {"language": "Python", "id": 14, "repo_owner": "psf", "repo_name": "black", "head_branch": "dummy-change", "workflow_name": "Lint + format ourselves", "workflow_filename": "lint.yml", "workflow_path": ".github/workflows/lint.yml", "contributor": "hauntsaninja", "sha_fail": "fb85e3ae413c548e50aee0449c7dcb1d4f52c600", "sha_success": "7c897ac99f9af1c44c60f115109c3af935643c4f", "workflow": "name: Lint + format ourselves\n\non: [push, pull_request]\n\njobs:\n build:\n # We want to run on external PRs, but not on our own internal PRs as they'll be run\n # by the push to the branch. Without this if check, checks are duplicated since\n # internal PRs match both the push and pull_request events.\n if:\n github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=\n github.repository\n\n runs-on: ubuntu-latest\n\n steps:\n - uses: actions/checkout@v4\n\n - name: Assert PR target is main\n if: github.event_name == 'pull_request' && github.repository == 'psf/black'\n run: |\n if [ \"$GITHUB_BASE_REF\" != \"main\" ]; then\n echo \"::error::PR targeting '$GITHUB_BASE_REF', please refile targeting 'main'.\" && exit 1\n fi\n\n - name: Set up latest Python\n uses: actions/setup-python@v5\n with:\n python-version: \"*\"\n\n - name: Install dependencies\n run: |\n python -m pip install --upgrade pip\n python -m pip install -e '.'\n python -m pip install tox\n\n - name: Run pre-commit hooks\n uses: pre-commit/[email protected]\n\n - name: Format ourselves\n run: |\n tox -e run_self\n", "logs": [{"step_name": "build/6_Run pre-commit hooks.txt", "log": "##[group]Run pre-commit/[email protected]\nwith:\n extra_args: --all-files\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\n##[group]Run python -m pip install pre-commit\n\u001b[36;1mpython -m pip install pre-commit\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\nCollecting pre-commit\n Downloading pre_commit-3.6.0-py2.py3-none-any.whl.metadata (1.3 kB)\nCollecting cfgv>=2.0.0 (from pre-commit)\n Downloading cfgv-3.4.0-py2.py3-none-any.whl.metadata (8.5 kB)\nCollecting identify>=1.0.0 (from pre-commit)\n Downloading identify-2.5.33-py2.py3-none-any.whl.metadata (4.4 kB)\nCollecting nodeenv>=0.11.1 (from pre-commit)\n Downloading nodeenv-1.8.0-py2.py3-none-any.whl.metadata (21 kB)\nCollecting pyyaml>=5.1 (from pre-commit)\n Downloading PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)\nRequirement already satisfied: virtualenv>=20.10.0 in /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages (from pre-commit) (20.25.0)\nCollecting setuptools (from nodeenv>=0.11.1->pre-commit)\n Using cached setuptools-69.0.3-py3-none-any.whl.metadata (6.3 kB)\nRequirement already satisfied: distlib<1,>=0.3.7 in /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit) (0.3.8)\nRequirement already satisfied: filelock<4,>=3.12.2 in /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit) (3.13.1)\nRequirement already satisfied: platformdirs<5,>=3.9.1 in /opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages (from virtualenv>=20.10.0->pre-commit) (4.1.0)\nDownloading pre_commit-3.6.0-py2.py3-none-any.whl (204 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 204.0/204.0 kB 14.6 MB/s eta 0:00:00\nDownloading cfgv-3.4.0-py2.py3-none-any.whl (7.2 kB)\nDownloading identify-2.5.33-py2.py3-none-any.whl (98 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 98.9/98.9 kB 19.8 MB/s eta 0:00:00\nDownloading nodeenv-1.8.0-py2.py3-none-any.whl (22 kB)\nDownloading PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (724 kB)\n \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 725.0/725.0 kB 49.5 MB/s eta 0:00:00\nUsing cached setuptools-69.0.3-py3-none-any.whl (819 kB)\nInstalling collected packages: setuptools, pyyaml, identify, cfgv, nodeenv, pre-commit\nSuccessfully installed cfgv-3.4.0 identify-2.5.33 nodeenv-1.8.0 pre-commit-3.6.0 pyyaml-6.0.1 setuptools-69.0.3\n##[group]Run python -m pip freeze --local\n\u001b[36;1mpython -m pip freeze --local\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\n-e git+https://github.com/psf/black@427999a0622525739dc487c5d4cf800455bab91e#egg=black\ncachetools==5.3.2\ncfgv==3.4.0\nchardet==5.2.0\nclick==8.1.7\ncolorama==0.4.6\ndistlib==0.3.8\nfilelock==3.13.1\nidentify==2.5.33\nmypy-extensions==1.0.0\nnodeenv==1.8.0\npackaging==23.2\npathspec==0.12.1\nplatformdirs==4.1.0\npluggy==1.3.0\npre-commit==3.6.0\npyproject-api==1.6.1\nPyYAML==6.0.1\nsetuptools==69.0.3\ntox==4.11.4\nvirtualenv==20.25.0\n##[group]Run actions/cache@v3\nwith:\n path: ~/.cache/pre-commit\n key: pre-commit-3|/opt/hostedtoolcache/Python/3.12.1/x64|2f53e69fb363b5ce1de2d9c07551c3dea71959f87798933b0db08a1ea22fbecf\n enableCrossOsArchive: false\n fail-on-cache-miss: false\n lookup-only: false\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\nCache Size: ~49 MB (51405993 B)\n[command]/usr/bin/tar -xf /home/runner/work/_temp/b6d78502-5f69-4058-a358-6d09c5cfea62/cache.tzst -P -C /home/runner/work/black/black --use-compress-program unzstd\nReceived 51405993 of 51405993 (100.0%), 48.9 MBs/sec\nCache restored successfully\nCache restored from key: pre-commit-3|/opt/hostedtoolcache/Python/3.12.1/x64|2f53e69fb363b5ce1de2d9c07551c3dea71959f87798933b0db08a1ea22fbecf\n##[group]Run pre-commit run --show-diff-on-failure --color=always --all-files\n\u001b[36;1mpre-commit run --show-diff-on-failure --color=always --all-files\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.1/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib\n##[endgroup]\nCheck pre-commit rev in example..........................................\u001b[42mPassed\u001b[m\nCheck black version in the basics example................................\u001b[42mPassed\u001b[m\nisort....................................................................\u001b[42mPassed\u001b[m\nflake8...................................................................\u001b[41mFailed\u001b[m\n\u001b[2m- hook id: flake8\u001b[m\n\u001b[2m- exit code: 1\u001b[m\n\n\u001b[1msrc/black/nodes.py\u001b[m\u001b[36m:\u001b[m750\u001b[36m:\u001b[m1\u001b[36m:\u001b[m \u001b[1m\u001b[31mW293\u001b[m blank line contains whitespace\n\u001b[1msrc/black/nodes.py\u001b[m\u001b[36m:\u001b[m751\u001b[36m:\u001b[m1\u001b[36m:\u001b[m \u001b[1m\u001b[31mW293\u001b[m blank line contains whitespace\n\nmypy.....................................................................\u001b[42mPassed\u001b[m\nprettier.................................................................\u001b[42mPassed\u001b[m\nfix end of files.........................................................\u001b[42mPassed\u001b[m\ntrim trailing whitespace.................................................\u001b[41mFailed\u001b[m\n\u001b[2m- hook id: trailing-whitespace\u001b[m\n\u001b[2m- exit code: 1\u001b[m\n\u001b[2m- files were modified by this hook\u001b[m\n\nFixing src/black/nodes.py\n\npre-commit hook(s) made changes.\nIf you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`.\nTo run `pre-commit` as part of git workflow, use `pre-commit install`.\nAll changes made by hooks:\n\u001b[1mdiff --git a/src/black/nodes.py b/src/black/nodes.py\u001b[m\n\u001b[1mindex bad5a66..7ee2df2 100644\u001b[m\n\u001b[1m--- a/src/black/nodes.py\u001b[m\n\u001b[1m+++ b/src/black/nodes.py\u001b[m\n\u001b[36m@@ -747,8 +747,8 @@\u001b[m \u001b[mdef is_parent_function_or_class(node: Node) -> bool:\u001b[m\n assert node.parent is not None\u001b[m\n # Note this works for suites / simple_stmts in async def as well\u001b[m\n return node.parent.type in {syms.funcdef, syms.classdef}\u001b[m\n\u001b[31m- \u001b[m\n\u001b[31m- \u001b[m\n\u001b[32m+\u001b[m\n\u001b[32m+\u001b[m\n def is_function_or_class(node: Node) -> bool:\u001b[m\n return node.type in {syms.funcdef, syms.classdef, syms.async_funcdef}\u001b[m\n \u001b[m\n##[error]Process completed with exit code 1.\n"}], "diff": "diff --git a/src/black/nodes.py b/src/black/nodes.py\nindex bad5a662..7ee2df2e 100644\n--- a/src/black/nodes.py\n+++ b/src/black/nodes.py\n@@ -747,8 +747,8 @@ def is_parent_function_or_class(node: Node) -> bool:\n assert node.parent is not None\n # Note this works for suites / simple_stmts in async def as well\n return node.parent.type in {syms.funcdef, syms.classdef}\n- \n- \n+\n+\n def is_function_or_class(node: Node) -> bool:\n return node.type in {syms.funcdef, syms.classdef, syms.async_funcdef}\n \n", "difficulty": "1"}