Meno25 created this task. Meno25 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, alaa, Aklapper.
TASK DESCRIPTION **Command line:** python pwb.py redirect double **Output:** C:\Users\Mohammed\Downloads\core\pywikibot\config.py:1039: UserWarning: Configuration variable "Optional" is defined in your user-config.py but unknown. It can be a misspelled one or a variable that is no longer supported. warn('\n' + fill('Configuration variable "{}" is defined in ' C:\Users\Mohammed\Downloads\core\pywikibot\config.py:1039: UserWarning: Configuration variable "Union" is defined in your user-config.py but unknown. It can be a misspelled one or a variable that is no longer supported. warn('\n' + fill('Configuration variable "{}" is defined in ' C:\Users\Mohammed\Downloads\core\pywikibot\config.py:1039: UserWarning: Configuration variable "List" is defined in your user-config.py but unknown. It can be a misspelled one or a variable that is no longer supported. warn('\n' + fill('Configuration variable "{}" is defined in ' C:\Users\Mohammed\Downloads\core\pywikibot\config.py:1039: UserWarning: Configuration variable "Tuple" is defined in your user-config.py but unknown. It can be a misspelled one or a variable that is no longer supported. warn('\n' + fill('Configuration variable "{}" is defined in ' Retrieving double redirect special page... **What happens?**: - This warning is shown whenever any script is run. - Deleting and recreating `user-config.py` does not fix the problem. - Related code is found here <https://github.com/wikimedia/pywikibot/blob/master/pywikibot/scripts/generate_user_files.py#L184> - Commenting out the following in my `user-config.py` from typing import Optional, Union from pywikibot.backports import Dict, List, Tuple to be #from typing import Optional, Union from pywikibot.backports import Dict#, List, Tuple solves this issue. **What should have happened instead?**: - This warning shouldn't have been displayed. **Software version:** Pywikibot: [https] r-pywikibot-core (b5ade09, g18280, 2023/12/06, 17:03:29, master) Release version: 9.0.0.dev0 setuptools version: 69.0.2 mwparserfromhell version: 0.6.5 wikitextparser version: n/a requests version: 2.31.0 certificate test: ok Python: 3.12.0 (tags/v3.12.0:0fb18b0, Oct 2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)] TASK DETAIL https://phabricator.wikimedia.org/T352965 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Meno25 Cc: Aklapper, alaa, Meno25, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org