[Pywikipedia-bugs] [Maniphest] [Commented On] T331011: Use explicit submodule imports for typings

2023-04-08 Thread RPI2026F1
RPI2026F1 added a comment. There are alternative ways to only import ForwardRef types for type checkers. A common usage I've seen is: from typing import TYPE_CHECKING if TYPE_CHECKING: from .mod import SomeClass def func(param: 'SomeClass') -> int: ...

[Pywikipedia-bugs] [Maniphest] [Commented On] T145971: ItemPage.exists() throws pywikibot.exceptions.IsRedirectPage

2023-04-08 Thread RPI2026F1
RPI2026F1 added a comment. Ahh my bad, I didn't notice this difference. TASK DETAIL https://phabricator.wikimedia.org/T145971 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, matej_suchanek, Legoktm, Dalba, jayvdb, Magul,

[Pywikipedia-bugs] [Maniphest] [Reopened] T145971: ItemPage.exists() throws pywikibot.exceptions.IsRedirectPage

2023-04-08 Thread Xqt
Xqt reopened this task as "Open". Xqt added a project: TestMe. Xqt added a comment. In T145971#8766674 , @RPI2026F1 wrote: > Seems to be working as of the latest version. > > >>> page = pywikibot.Page(site, "WD:RFD") > >>>

[Pywikipedia-bugs] [Maniphest] [Triaged] T334341: ItemPage.exists() documentation is incorrect

2023-04-08 Thread RPI2026F1
RPI2026F1 triaged this task as "Low" priority. TASK DETAIL https://phabricator.wikimedia.org/T334341 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH,

[Pywikipedia-bugs] [Maniphest] [Created] T334341: ItemPage.exists() documentation is incorrect

2023-04-08 Thread RPI2026F1
RPI2026F1 created this task. RPI2026F1 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): >>> page = pywikibot.Page(site, "Wikidata:Requests for

[Pywikipedia-bugs] [Maniphest] [Closed] T145971: ItemPage.exists() throws pywikibot.exceptions.IsRedirectPage

2023-04-08 Thread RPI2026F1
RPI2026F1 closed this task as "Resolved". RPI2026F1 added a comment. Seems to be working as of the latest version. >>> page = pywikibot.Page(site, "WD:RFD") >>> page.exists() True TASK DETAIL https://phabricator.wikimedia.org/T145971 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Updated] T75561: Page.categories withSortKey ignored

2023-04-08 Thread Pppery
Pppery edited projects, added Patch-Needs-Improvement; removed Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T75561 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tol, Pppery Cc: Tol, jayvdb, Ricordisamoa, pywikibot-bugs-list,

[Pywikipedia-bugs] [Maniphest] [Updated] T67262: ns parameter of Page object and/or defaultnamespace of Link object should force the namespace

2023-04-08 Thread Pppery
Pppery edited projects, added Patch-Needs-Improvement; removed Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T67262 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Pppery Cc: AntiCompositeNumber, Dvorapa, gerritbot, zhuyifei1999,

[Pywikipedia-bugs] [Maniphest] [Updated] T67164: site.preloadpages / data.api.update_page should set preloaded parameters to 'empty' if no data is returned

2023-04-08 Thread Pppery
Pppery edited projects, added Patch-Needs-Improvement; removed Patch-For-Review. TASK DETAIL https://phabricator.wikimedia.org/T67164 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Pppery Cc: Dvorapa, jayvdb, valhallasw, pywikibot-bugs-list,

[Pywikipedia-bugs] [Maniphest] [Updated] T178061: Reduce (API) warning clutter in login.py after clean installation

2023-04-08 Thread Stang
Stang added a comment. Hi @Xqt, I received an email for a user asking if the warning below indicate their IP address is at risk of being compromised (due to accidental logout) WARNING: No user is logged in on site wikipedia:zh F36943410: image.png

[Pywikipedia-bugs] [Maniphest] [Commented On] T329102: archivebot: allow -salt value to be stored elsewhere

2023-04-08 Thread Xqt
Xqt added a comment. In T329102#8596286 , @MarcoAurelio wrote: > This is not in the docs (or is not obvious to me) but I managed to make the bot work by adding the `-salt:NNN` value to run the command: > > $ python pwb.py

[Pywikipedia-bugs] [Maniphest] [Declined] T331011: Use explicit submodule imports for typings

2023-04-08 Thread Xqt
Xqt closed this task as "Declined". Xqt added a comment. These implicit types are typing.ForwardRef types and must be recognised by introspective tools. This is an upstream only issue. In addition we cannot solve it due to circular import errors in most cases, TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Closed] T321408: NoUsernameError on specific pywikibot classes

2023-04-08 Thread Xqt
Xqt closed this task as "Invalid". Xqt added a comment. Feel free to reopen if you have further informations to this issue TASK DETAIL https://phabricator.wikimedia.org/T321408 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, VcamX,