anoexpected added a comment.

  That makes perfect sense. I will proceed with the first approach (removing 
the future import).
  
  My Plan:
  
    Remove from __future__ import annotations.
    
    Update all type hints in config.py to use Union[...] and Optional[...] 
instead of | to maintain Python 3.9 compatibility.
    
    Implement _check_user_config_types using __origin__ and __args__ 
introspection as suggested.
  
  I'll get started on the refactor now.

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]

Reply via email to