Xqt added a comment.
There is another thing when removing the future import:
if TYPE_CHECKING:
_DabComDict = collections.defaultdict[str, dict[str, str]]
leads to an error. But you can remove the `TYPE_CHECKING` condition then.
Use pre-commit to check your changes. `pre-commit run -a` for all hooks and
`pre-commit run mypy -a` for type checking only.
> Implement _check_user_config_types using `__origin__` and `__args__`
introspection as suggested.
Maybe you should keep the old behaviour as fallback.
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]