jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770143 )
Change subject: namespace-typing: fix invalid types ...................................................................... namespace-typing: fix invalid types Change-Id: I4e38226c95b9204a05403e5d95713234e9f903d8 --- M pywikibot/site/_namespace.py 1 file changed, 3 insertions(+), 2 deletions(-) Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified diff --git a/pywikibot/site/_namespace.py b/pywikibot/site/_namespace.py index 9a52e73..1618449 100644 --- a/pywikibot/site/_namespace.py +++ b/pywikibot/site/_namespace.py @@ -8,12 +8,13 @@ from enum import IntEnum from typing import Optional, Union +from pywikibot.backports import Iterable as IterableType from pywikibot.backports import List from pywikibot.tools import ComparableMixin, SelfCallMixin -NamespaceIDType = 'Union[int, str, Namespace]' -NamespaceArgType = 'Union[NamespaceIDType, Iterable[NamespaceIDType], None]' +NamespaceIDType = Union[int, str, 'Namespace'] +NamespaceArgType = Union[NamespaceIDType, IterableType[NamespaceIDType], None] class BuiltinNamespace(IntEnum): -- To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770143 To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Change-Id: I4e38226c95b9204a05403e5d95713234e9f903d8 Gerrit-Change-Number: 770143 Gerrit-PatchSet: 1 Gerrit-Owner: JJMC89 <[email protected]> Gerrit-Reviewer: JJMC89 <[email protected]> Gerrit-Reviewer: jenkins-bot Gerrit-MessageType: merged
_______________________________________________ Pywikibot-commits mailing list -- [email protected] To unsubscribe send an email to [email protected]
