Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/980504 )
Change subject: [IMPR] Fix type hints in _filepage.py ......................................................................
[IMPR] Fix type hints in _filepage.py
Change-Id: Ia836613ec8c362a977cf07d0ede343ed87562086 --- M pywikibot/page/_filepage.py 1 file changed, 11 insertions(+), 2 deletions(-)
Approvals: Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/page/_filepage.py b/pywikibot/page/_filepage.py index deb0bf3..0503454 100644 --- a/pywikibot/page/_filepage.py +++ b/pywikibot/page/_filepage.py @@ -161,7 +161,7 @@ def get_file_url(self, url_width: Optional[int] = None, url_height: Optional[int] = None, - url_param: Optional[int] = None) -> str: + url_param: Optional[str] = None) -> str: """Return the url or the thumburl of the file described on this page.
Fetch the information if not available. @@ -330,7 +330,7 @@ revision: Optional['FileInfo'] = None, *, url_width: Optional[int] = None, url_height: Optional[int] = None, - url_param: Optional[int] = None) -> bool: + url_param: Optional[str] = None) -> bool: """Download to filename file of FilePage.
**Usage examples:**