jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/894650 )

Change subject: [IMPR] Do not import unneeded module
......................................................................

[IMPR] Do not import unneeded module

Change-Id: I420ac6762e19abcfb6d847242f28c3e9c508cb26
---
M pywikibot/date.py
1 file changed, 12 insertions(+), 3 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/pywikibot/date.py b/pywikibot/date.py
index 3f35e63..07edc20 100644
--- a/pywikibot/date.py
+++ b/pywikibot/date.py
@@ -1,6 +1,6 @@
 """Date data and manipulation module."""
 #
-# (C) Pywikibot team, 2003-2022
+# (C) Pywikibot team, 2003-2023
 #
 # Distributed under the terms of the MIT license.
 #
@@ -13,7 +13,6 @@
 from string import digits as _decimalDigits  # noqa: N812
 from typing import Optional, Union

-import pywikibot.site
 from pywikibot import Site
 from pywikibot.backports import (
     Any,
@@ -26,6 +25,7 @@
     Sequence,
     Tuple,
 )
+from pywikibot.site import BaseSite
 from pywikibot.textlib import NON_LATIN_DIGITS
 from pywikibot.tools import first_lower, first_upper

@@ -1970,7 +1970,7 @@


 def format_date(month: int, day: int,
-                lang: Union[None, str, 'pywikibot.site.BaseSite'] = None,
+                lang: Union[None, str, BaseSite] = None,
                 year: int = 2000) -> str:
     """Format a date localized to given lang.


--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/894650
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: I420ac6762e19abcfb6d847242f28c3e9c508cb26
Gerrit-Change-Number: 894650
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to