Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
Refactor `_check_user_config_types` to infer allowed types from type hints
instead of runtime types. Remove hardcoded special cases.
**Idea:**
>>> typehints = getattr(config, '__annotations__', {})
>>> typehints['putthrottle']
'int | float' # <-- to be parsed
TASK DETAIL
https://phabricator.wikimedia.org/T416145
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]