[Pywikipedia-bugs] [Maniphest] [Commented On] T355981: Pywikibot makes extra network request even if diff is empty
RPI2026F1 added a comment. An alternative that would work is if I can query the diff publicly. Taking a look at the internal code, it uses private variables, so there's no easy way to get the diff in a "safe" way. TASK DETAIL https://phabricator.wikimedia.org/T355981 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: matej_suchanek, Xqt, Aklapper, pywikibot-bugs-list, RPI2026F1, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T355981: Pywikibot makes extra network request even if diff is empty
RPI2026F1 added a comment. Obviously this is not something I would do intentionally, but in a large script is it very possible for one section of code to add a property and another section of code to remove that property, and then the diff becomes empty. TASK DETAIL https://phabricator.wikimedia.org/T355981 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: matej_suchanek, Xqt, Aklapper, pywikibot-bugs-list, RPI2026F1, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T355981: Pywikibot makes extra network request even if diff is empty
RPI2026F1 added a comment. In T355981#9492165 <https://phabricator.wikimedia.org/T355981#9492165>, @Xqt wrote: > @RPI2026F1 Cannot follow this task, could you please explain a bit more. What is meant with //diff is empty//? What would be the reason not to make a request call if we have a site? I guess you mean the `editEntity()` call without any parameters? `editEntity()` has a function where if you call it without any parameters, it will make a "diff" of the item from the server and what's stored internally, and then send this diff to Wikidata. However, if the item wasn't changed at all, the diff will be an empty dictionary. TASK DETAIL https://phabricator.wikimedia.org/T355981 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Xqt, Aklapper, pywikibot-bugs-list, RPI2026F1, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T355981: Pywikibot makes extra network request even if diff is empty
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): - `item = pywikibot.ItemPage(site, "Q1") - `item.editEntity()` **What happens?**: A network request is made. **What should have happened instead?**: The method should have done nothing. **Software version** (skip for WMF-hosted wikis like Wikipedia): pywikibot 8.6.0 **Other information** (browser name/version, screenshots, etc.): TASK DETAIL https://phabricator.wikimedia.org/T355981 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T355915: Pywikibot made unmentioned breaking change in 8.3.0
RPI2026F1 added a comment. I was using DataSite to enhance type information, since `pywikibot.Site()` only returns methods shared by all types of sites, and I needed some Wikidata-specific methods. TASK DETAIL https://phabricator.wikimedia.org/T355915 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: JJMC89, Aklapper, pywikibot-bugs-list, RPI2026F1, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T355915: Pywikibot made unmentioned breaking change in 8.3.0
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): - Run code in pywikibot 8.2.0 - Run code in pywikibot 8.3.0 import pywikibot print(pywikibot.DataSite) **What happens?**: On 8.3.0, the code chunk throws an exception that it did not in 8.2.0 **What should have happened instead?**: Behavior should have remained consistent **Software version** (skip for WMF-hosted wikis like Wikipedia): Pywikibot 8.3.0 **Other information** (browser name/version, screenshots, etc.): https://github.com/wikimedia/pywikibot/commit/858fc1e1bcc65a7ce987d7b6a8be8a61c540af2e removed `DataSite` from `pywikibot/__init__,py` and did not make it available again. Any old code that used `pywikibot.DataSite` now broke. TASK DETAIL https://phabricator.wikimedia.org/T355915 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T340495: Incorrect normalization of pywikibot.WbTime
RPI2026F1 added a comment. I mean it partially isn’t a bug as the precision is set to millennium. If you want a more specific date value then the precision should be updated to be more precise. TASK DETAIL https://phabricator.wikimedia.org/T340495 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, Xqt, Aklapper, pywikibot-bugs-list, Multichill, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T331011: Use explicit submodule imports for typings
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: ... All static type checkers will set `TYPE_CHECKING` to True and evaluate the code blocks in there. Ref: https://docs.python.org/3/library/typing.html#typing.TYPE_CHECKING TASK DETAIL https://phabricator.wikimedia.org/T331011 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Xqt, Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T145971: ItemPage.exists() throws pywikibot.exceptions.IsRedirectPage
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, Pasleim, gerritbot, Xqt, Aklapper, TerraCodes, pywikibot-bugs-list, Multichill, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Triaged] T334341: ItemPage.exists() documentation is incorrect
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, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T334341: ItemPage.exists() documentation is incorrect
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 deletions#FakeHeading") >>> page.exists() True **What happens?**: The documentation claims that it will return False if a heading is included but the heading does not exist on the page. However, this behavior does not happen. **What should have happened instead?**: Ideally, if the heading did not exist, it would return False. However, since templates can add section headings, pywikibot would need to parse the generated HTML to determine if the section header exists, or alternatively this line can be removed from the documentation. **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): 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, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Closed] T145971: ItemPage.exists() throws pywikibot.exceptions.IsRedirectPage
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 https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, matej_suchanek, Legoktm, Dalba, jayvdb, Magul, Pasleim, gerritbot, Xqt, Aklapper, TerraCodes, pywikibot-bugs-list, Multichill, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T330716: Add more fine-grained types for WikidataSPARQLPageGenerator
RPI2026F1 added a comment. In T330716#8669002 <https://phabricator.wikimedia.org/T330716#8669002>, @Xqt wrote: > I've no glue how this can be done. `DataSite` is a subclass from `BaseSite` but how can an overload be done for all site objects which are no `DataSite` objects? If the site parameter is `None` the Site type is determined during runtime and can be either `DataSite`, `APISite`, `DrySite`, `DryDataSite` or any other defined e.g. by `Family.interface()` method. In this case, I think we should keep the current behavior if the `site` parameter is not given. Only when it's provided should we have more specific overloads. TASK DETAIL https://phabricator.wikimedia.org/T330716 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Xqt, Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T331011: Use explicit submodule imports for typings
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): A lot of parts of `pywikibot` use classes from other submodules, but it relies on the implicit importation of submodules from other submodules for it. This is incompatible with typecheckers like Pylance (https://github.com/microsoft/pylance-release/issues/4014). **What happens?**: Type checkers cannot resolve forward references when the submodule import is not explicit. **What should have happened instead?**: Type checking should work **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): F36888707: image.png <https://phabricator.wikimedia.org/F36888707> TASK DETAIL https://phabricator.wikimedia.org/T331011 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T330716: Add more fine-grained types for WikidataSPARQLPageGenerator
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Feature summary** (what you would like to be able to do and where): `pywikibot.pagegenerators` has a `WikidataSPARQLPageGenerator` generator that returns either entity pages or normal pages depending on if the site given is a `DataSite` or just a normal `Site`. **Use case(s)** (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): Looking through the code, there are two cases: Case 1: When the site is a `DataSite`, it will return an iterator of `ItemPage`s, `PropertyPage`s, and/or `LexemePage`s, depending on the query Case 2: Where the site is not a `DataSite`, it will return an iterator of `Page`s that are the sitelinks of any items that would be returned in Case 1. This presents a very obvious opportunity for using `@typing.overload` and making two function type signatures. **Benefits** (why should this be implemented?): Static type checkers would now have a much easier time when working with the first case, since there is very little one can do with an item when knowing it's a `Page` object since you cannot actually manipulate the item. TASK DETAIL https://phabricator.wikimedia.org/T330716 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Closed] T327607: pywikibot item.editEntity() duplicates added statement
RPI2026F1 closed this task as "Resolved". RPI2026F1 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T327607 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Unblock] T325864: pywikibot.WbTime.fromTimestamp discards timezone information
RPI2026F1 closed subtask T325868: pywikibot.WbTime.toTimestamp discards timezone information as Resolved. TASK DETAIL https://phabricator.wikimedia.org/T325864 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Closed] T325868: pywikibot.WbTime.toTimestamp discards timezone information
RPI2026F1 closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T325868 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T328811: pywikibot.Claim method to recursively copy a claim
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Feature summary** (what you would like to be able to do and where): A method `pywikibot.Claim.copy()` that will copy the Claim and any qualifiers/source groups if it has any. The Claim would be delinked from the item was originally linked to. **Use case(s)** (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): A simple example would be if I want to take a claim from one item and copy it to another item. **Benefits** (why should this be implemented?): Makes it much simpler to copy a Claim. TASK DETAIL https://phabricator.wikimedia.org/T328811 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T327808: pywikibot item.editEntity() cannot handle cleared labels/aliases/descriptions/claims
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): site = pywikibot.Site("test", "wikidata") item = pywikibot.ItemPage(site, "Q229226") prop = pywikibot.PropertyPage(site, "P97339") claim = pywikibot.Claim(site, prop.id) claim.setTarget("test") item.claims.setdefault(claim.id, []).append(claim) item.editEntity() item.claims.clear() item.editEntity() **What happens?**: Nothing happens on the second call **What should have happened instead?**: All claims on the item should be deleted **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): TASK DETAIL https://phabricator.wikimedia.org/T327808 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Edited] T327607: pywikibot item.editEntity() duplicates added statement
RPI2026F1 updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T327607 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Edited] T327607: pywikibot item.editEntity() duplicates added statement
RPI2026F1 updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T327607 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T327607: pywikibot item.editEntity() duplicates added statement
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): python site = pywikibot.Site("test", "wikidata") item = pywikibot.ItemPage(site, "Q229226") prop = pywikibot.PropertyPage(site, "P97339") claim = pywikibot.Claim(site, prop.id) claim.setTarget("test") item.claims.setdefault(claim.id, []).append(claim) item.editEntity() prop = pywikibot.PropertyPage(site, "P97340") claim = pywikibot.Claim(site, prop.id) claim.setTarget(Out[29]) item.claims.setdefault(claim.id, []).append(claim) item.editEntity() **What happens?**: The claim `[P97339, "test"]` is inserted **twice**. **What should have happened instead?**: It is inserted once **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): TASK DETAIL https://phabricator.wikimedia.org/T327607 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T327205: Pywikibot Claim inconsistency with sources vs references
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Most methods in `pywikibot.Claim` relating to references use the name `source`, except for `pywikibot.Claim.isReference` and `pywikibot.Claim.referenceFromJSON`. I think the naming should be standardized. TASK DETAIL https://phabricator.wikimedia.org/T327205 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T325248: Implement __eq__ that does not care about timezones
RPI2026F1 changed the status of subtask T326693: Normalization of WbTimes does not remove timezone information for precisions less than or equal to day from Open to In Progress. TASK DETAIL https://phabricator.wikimedia.org/T325248 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Framawiki, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Started] T326693: Normalization of WbTimes does not remove timezone information for precisions less than or equal to "day"
RPI2026F1 changed the task status from "Open" to "In Progress". RPI2026F1 triaged this task as "Low" priority. RPI2026F1 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T326693 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Framawiki, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T326693: Normalization of WbTimes does not remove timezone information for precisions less than or equal to "day"
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot-Wikidata, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Currently normalization will carry over timezone information. However, this does not make sense for a precision of "day" or lower, such as week. In that context timezone does not change the value (the date April 20, 2022 is the same "day" regardless of being in UTC+5 or UTC-5). Normalization should strip the timezone in these cases. TASK DETAIL https://phabricator.wikimedia.org/T326693 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Lowered Priority] T325864: pywikibot.WbTime.fromTimestamp discards timezone information
RPI2026F1 lowered the priority of this task from "Medium" to "Low". TASK DETAIL https://phabricator.wikimedia.org/T325864 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Framawiki, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T325248: Implement __eq__ that does not care about timezones
RPI2026F1 changed the status of subtask T325864: pywikibot.WbTime.fromTimestamp discards timezone information from Stalled to In Progress. TASK DETAIL https://phabricator.wikimedia.org/T325248 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Framawiki, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Started] T325864: pywikibot.WbTime.fromTimestamp discards timezone information
RPI2026F1 changed the task status from "Stalled" to "In Progress". TASK DETAIL https://phabricator.wikimedia.org/T325864 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Framawiki, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Changed Status] T325197: Inconsistency between flake8 on Python 3.6 vs flake8 on Python 3.9 for pywikibot-core integration tests
RPI2026F1 changed the task status from "Invalid" to "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T325197 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Xqt, Aklapper, RPI2026F1, pywikibot-bugs-list, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Framawiki, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T326453: Unable to repr claim without target
RPI2026F1 added a comment. Maybe a solution can be to display a REPR of `` or something along those lines. TASK DETAIL https://phabricator.wikimedia.org/T326453 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: matej_suchanek, Xqt, Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T326453: Unable to repr claim without target
RPI2026F1 added a comment. @Xqt alright, sorry I missed that somehow TASK DETAIL https://phabricator.wikimedia.org/T326453 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Xqt, Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Edited] T326453: Unable to repr claim without target
RPI2026F1 updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T326453 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Xqt, Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T326452: AttributeError: module 'pywikibot' has no attribute 'family' with bizarre repro
RPI2026F1 added a comment. I think the only way to deal with this is to do from imports only, ie no accessing modules from the parent pywikibot module. TASK DETAIL https://phabricator.wikimedia.org/T326452 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Xqt, Aklapper, RPI2026F1, pywikibot-bugs-list, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Framawiki, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T326453: Unable to repr claim without target
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): - `repr(pywikibot.Claim(site))` **What happens?**: File "", line 1, in File "/Users/User/.local/share/virtualenvs/wikidata-bot-framework-Uh4zljqI/lib/python3.10/site-packages/pywikibot/page/_wikibase.py", line 1437, in __repr__ repr(self.repo), self.toJSON(), cls_name=type(self).__name__) File "/Users/User/.local/share/virtualenvs/wikidata-bot-framework-Uh4zljqI/lib/python3.10/site-packages/pywikibot/page/_wikibase.py", line 1605, in toJSON data['mainsnak']['datavalue'] = self._formatDataValue() File "/Users/User/.local/share/virtualenvs/wikidata-bot-framework-Uh4zljqI/lib/python3.10/site-packages/pywikibot/page/_wikibase.py", line 1924, in _formatDataValue 'value': self._formatValue(), File "/Users/User/.local/share/virtualenvs/wikidata-bot-framework-Uh4zljqI/lib/python3.10/site-packages/pywikibot/page/_wikibase.py", line 1896, in _formatValue value = {'entity-type': self.getTarget().entity_type, AttributeError: 'NoneType' object has no attribute 'entity_type' **What should have happened instead?**: A repr of some sort should show up **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): TASK DETAIL https://phabricator.wikimedia.org/T326453 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Triaged] T326452: AttributeError: module 'pywikibot' has no attribute 'family' with bizarre repro
RPI2026F1 triaged this task as "Lowest" priority. TASK DETAIL https://phabricator.wikimedia.org/T326452 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T326452: AttributeError: module 'pywikibot' has no attribute 'family' with bizarre repro
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): - Install pywikibot through pip through a virtualenv. Importantly, **do not install a wikitext parser like mwparserfromhell** - Run this script: try: import pywikibot except Exception: import os os.system('pip install mwparserfromhell') import pywikibot site = pywikibot.Site('wikidata', 'wikidata') **What happens?**: Traceback (most recent call last): File "/private/tmp/tmp.py", line 7, in site = pywikibot.Site('wikidata', 'wikidata') File "/Users/User/.local/share/virtualenvs/tmp-agwWamBd/lib/python3.10/site-packages/pywikibot/__init__.py", line 1118, in Site _sites[key] = interface(code=code, fam=fam, user=user) File "/Users/User/.local/share/virtualenvs/tmp-agwWamBd/lib/python3.10/site-packages/pywikibot/site/_datasite.py", line 38, in __init__ super().__init__(*args, **kwargs) File "/Users/User/.local/share/virtualenvs/tmp-agwWamBd/lib/python3.10/site-packages/pywikibot/site/_apisite.py", line 117, in __init__ super().__init__(code, fam, user) File "/Users/User/.local/share/virtualenvs/tmp-agwWamBd/lib/python3.10/site-packages/pywikibot/site/_basesite.py", line 54, in __init__ if not all(x in pywikibot.family.CODE_CHARACTERS for x in code): File "/Users/User/.local/share/virtualenvs/tmp-agwWamBd/lib/python3.10/site-packages/pywikibot/site/_basesite.py", line 54, in if not all(x in pywikibot.family.CODE_CHARACTERS for x in code): AttributeError: module 'pywikibot' has no attribute 'family'. Did you mean: 'Family'? CRITICAL: Exiting due to uncaught exception **What should have happened instead?**: It shouldn't fail. In fact, running that script again will make it work. **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): TASK DETAIL https://phabricator.wikimedia.org/T326452 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T326429: pywikibot pagegenerators should have a generator for batch loading ItemPages/PropertyPages/LexemePages
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata, Pywikibot-pagegenerators.py. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Feature summary** (what you would like to be able to do and where): Instead of loading one at a time, I should be able to provide an iterable and have them become loaded. **Use case(s)** (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): The only way to load an iterable of fresh items is to access a property on each. However, there is no way to batch this, even though the wbgetentities endpoint does exist. **Benefits** (why should this be implemented?): Potential 50x reduction in network requests TASK DETAIL https://phabricator.wikimedia.org/T326429 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Updated] T326423: pywikibot pagegenerators should return ItemPages when site is wikidata
RPI2026F1 added a project: Pywikibot-pagegenerators.py. TASK DETAIL https://phabricator.wikimedia.org/T326423 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T326424: Unable to convert normal page to item page even if site and title are valid item page values
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): site = pywikibot.Site("wikidata", "wikidata") y = pywikibot.Page(site, "Q5") y.data_item() **What happens?**: --- NoPageError Traceback (most recent call last) Cell In[55], line 3 1 site = pywikibot.Site("wikidata", "wikidata") 2 y = pywikibot.Page(site, "Q5") > 3 y.data_item() File /srv/paws/pwb/pywikibot/page/_pages.py:1528, in BasePage.data_item(self) 1522 def data_item(self): 1523 """ 1524 Convenience function to get the Wikibase item of a page. 1525 1526 :rtype: pywikibot.page.ItemPage 1527 """ -> 1528 return pywikibot.ItemPage.fromPage(self) File /srv/paws/pwb/pywikibot/page/_wikibase.py:944, in ItemPage.fromPage(cls, page, lazy_load) 942 i._title = page.title(with_section=False) 943 if not lazy_load and not i.exists(): --> 944 raise NoPageError(i) 945 page._item = i 946 return page._item **What should have happened instead?**: I get back an `ItemPage` **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): TASK DETAIL https://phabricator.wikimedia.org/T326424 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: pywikibot-bugs-list, Aklapper, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T326423: pywikibot pagegenerators should return ItemPages when site is wikidata
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Feature summary** (what you would like to be able to do and where): Whenever the site is a data repository and a returned page is one of the item pages in that data repository's item namepsaces, to turn it into an ItemPage **Use case(s)** (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): Right now if I use something like AllPagesGenerator but limited to the Property namespace then it gives me back a bunch of normal Pages. I would like to be able to work with them as a bunch of Items. **Benefits** (why should this be implemented?): Allows making working with Wikidata items from page generators easier. TASK DETAIL https://phabricator.wikimedia.org/T326423 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Unblock] T325342: Add pywikibot.WbTime.now()
RPI2026F1 closed subtask T325444: Include examples of using datetime objects and current time as Resolved. TASK DETAIL https://phabricator.wikimedia.org/T325342 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Closed] T325444: Include examples of using datetime objects and current time
RPI2026F1 closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T325444 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T123888: Incorrect default month and day for WbTime
RPI2026F1 changed the status of subtask T325860: Unable to submit any pywikibot.WbTime with hour/minute/second even if precision is day or lower from Stalled to In Progress. TASK DETAIL https://phabricator.wikimedia.org/T123888 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Multichill, Aklapper, StudiesWorld, pywikibot-bugs-list, Lokal_Profil, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Started] T325860: Unable to submit any pywikibot.WbTime with hour/minute/second even if precision is day or lower
RPI2026F1 changed the task status from "Stalled" to "In Progress". TASK DETAIL https://phabricator.wikimedia.org/T325860 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325915: pywikibot throws mwoauth-invalid-authorization-invalid-user when calling editEntity() with no arguments
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): import pywikibot site = pywikibot.Site("wikidata", "wikidata") item = pywikibot.ItemPage(site, "Q4115189") item.editEntity() **What happens?**: --- AttributeErrorTraceback (most recent call last) File /srv/paws/pwb/pywikibot/site/_basesite.py:192, in BaseSite.__getattr__(self, attr) 191 try: --> 192 method = getattr(self.family, attr) 193 if not callable(method): AttributeError: 'Family' object has no attribute '_namespaces' During handling of the above exception, another exception occurred: AttributeErrorTraceback (most recent call last) File /srv/paws/pwb/pywikibot/tools/__init__.py:748, in cached..wrapper(obj, force) 747 try: --> 748 return getattr(obj, cache_name) 749 except AttributeError: File /srv/paws/pwb/pywikibot/site/_basesite.py:200, in BaseSite.__getattr__(self, attr) 199 except AttributeError: --> 200 raise AttributeError("{} instance has no attribute '{}'" 201 .format(self.__class__.__name__, attr)) AttributeError: APISite instance has no attribute '_namespaces' During handling of the above exception, another exception occurred: NoUsernameError Traceback (most recent call last) File /srv/paws/pwb/pywikibot/page/_decorators.py:34, in _allow_asynchronous..handle(func, self, *args, **kwargs) 33 try: ---> 34 func(self, *args, **kwargs) 35 # TODO: other "expected" error types to catch? File /srv/paws/pwb/pywikibot/page/_wikibase.py:647, in WikibasePage.editEntity(self, data, **kwargs) 646 # kept for the decorator which provides the keyword arguments --> 647 super().editEntity(data, **kwargs) File /srv/paws/pwb/pywikibot/page/_wikibase.py:299, in WikibaseEntity.editEntity(self, data, **kwargs) 298 if data is None: --> 299 data = self.toJSON(diffto=getattr(self, '_content', None)) 300 else: File /srv/paws/pwb/pywikibot/page/_wikibase.py:193, in WikibaseEntity.toJSON(self, diffto) 192 else: --> 193 value = attr.toJSON() 194 if value: File /srv/paws/pwb/pywikibot/page/_collections.py:459, in SiteLinkCollection.toJSON(self, diffto) 451 """ 452 Create JSON suitable for Wikibase API. 453 (...) 457 :param diffto: JSON containing entity data 458 """ --> 459 data = {dbname: sitelink.toJSON() 460 for (dbname, sitelink) in self.items()} 461 if diffto: File /srv/paws/pwb/pywikibot/page/_collections.py:459, in (.0) 451 """ 452 Create JSON suitable for Wikibase API. 453 (...) 457 :param diffto: JSON containing entity data 458 """ --> 459 data = {dbname: sitelink.toJSON() 460 for (dbname, sitelink) in self.items()} 461 if diffto: File /usr/lib/python3.10/_collections_abc.py:906, in ItemsView.__iter__(self) 905 for key in self._mapping: --> 906 yield (key, self._mapping[key]) File /srv/paws/pwb/pywikibot/page/_collections.py:366, in SiteLinkCollection.__getitem__(self, key) 365 elif isinstance(val, dict): --> 366 val = pywikibot.page.SiteLink.fromJSON(val, self.repo) 367 else: File /srv/paws/pwb/pywikibot/page/_links.py:752, in SiteLink.fromJSON(cls, data, site) 743 """ 744 Create a SiteLink object from JSON returned in the API call. 745 (...) 750 :rtype: pywikibot.page.SiteLink 751 """ --> 752 sl = cls(data['title'], data['site']) 753 repo = site or sl.site.data_repository() File /srv/paws/pwb/pywikibot/page/_links.py:697, in SiteLink.__init__(self, title, site, badges) 696 if ':' in title: --> 697 site, namespace, title = SiteLink._parse_namespace(title, site) 699 super().__init__(title, namespace, site) File /srv/paws/pwb/pywikibot/page/_links.py:724, in SiteLink._parse_namespace(title, site) 723 prefix = title[:title.index(':')].lower() # part of text before : --> 724 ns = site.namespaces.lookup_name(prefix) 725 if ns: # The prefix is a namespace in the source wiki File /srv/paws/pwb/pywikibot/tools/__init__.py:750, in cached..wrapper(
[Pywikipedia-bugs] [Maniphest] [Commented On] T325883: Test pywikibot with Python 3.10 and Python 3.11
RPI2026F1 added a comment. > Can you please provide references for this statement? Thanks! I noticed that whenever I submit a path the test suite is run from 3.6-3.9. TASK DETAIL https://phabricator.wikimedia.org/T325883 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: JJMC89, pywikibot-bugs-list, Aklapper, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325882: Pywikibot not handling wikibase-validator-sitelink-conflict-unknown
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): - Unknown what caused this error to pop up as my bot was adding references to a claim - https://www.wikidata.org/wiki/Wikidata:Project_chat#Weird_error_when_editing_unrelated_part_of_item? - **What happens?**: pywikibot.exceptions.APIError: failed-save: The save has failed. [messages: [{'name': 'wikibase-api-failed-save', 'parameters': [], 'html': {'*': 'The save has failed.'}}, {'name': 'wikibase-validator-sitelink-conflict-unknown', 'parameters': ['[https://de.wikipedia.org/wiki/Mixed-up_first_Love dewiki:Mixed-up first Love]'], 'html': {'*': 'The link https://de.wikipedia.org/wiki/Mixed-up_first_Love;>dewiki:Mixed-up first Love is also used by another Item that is currently being saved.'}}]; **What should have happened instead?**: The edit should be retried. **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): TASK DETAIL https://phabricator.wikimedia.org/T325882 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T325862: Rename pywikibot's "async" kwargs
RPI2026F1 added a comment. I guess that makes sense. My intro to Python programming was the discord.py library, which runs exclusively on asyncio, and so I had thought that async made the library use coroutines. TASK DETAIL https://phabricator.wikimedia.org/T325862 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: binbot, Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T325864: pywikibot.WbTime.fromTimestamp discards timezone information
RPI2026F1 changed the status of subtask T325868: pywikibot.WbTime.toTimestamp discards timezone information from Open to In Progress. TASK DETAIL https://phabricator.wikimedia.org/T325864 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Started] T325868: pywikibot.WbTime.toTimestamp discards timezone information
RPI2026F1 triaged this task as "Low" priority. RPI2026F1 claimed this task. RPI2026F1 changed the task status from "Open" to "In Progress". TASK DETAIL https://phabricator.wikimedia.org/T325868 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325868: pywikibot.WbTime.toTimestamp discards timezone information
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot-Wikidata, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): ts1 = pywikibot.Timestamp( year=2022, month=12, day=21, hour=13, tzinfo=datetime.timezone(datetime.timedelta(hours=-5))) t1 = pywikibot.WbTime.fromTimestamp(ts1, timezone=-300) t1.toTimestamp() == ts1 **What happens?**: The equality is false. **What should have happened instead?**: The equality is true **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): For backwards compatibility, I'll introduce a parameter `keep_timezone` that adds the timezone in. TASK DETAIL https://phabricator.wikimedia.org/T325868 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Changed Status] T325248: Implement __eq__ that does not care about timezones
RPI2026F1 triaged this task as "Low" priority. RPI2026F1 changed the task status from "Open" to "Stalled". TASK DETAIL https://phabricator.wikimedia.org/T325248 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, dom_walden, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T148280: WbTime comparison is incorrect
RPI2026F1 changed the status of subtask T325248: Implement __eq__ that does not care about timezones from Open to Stalled. TASK DETAIL https://phabricator.wikimedia.org/T148280 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Lokal_Profil, gerritbot, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, dom_walden, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Updated] T325342: Add pywikibot.WbTime.now()
RPI2026F1 removed a subtask: T324329: Document importance of site parameter on pywikibot.WbTime. TASK DETAIL https://phabricator.wikimedia.org/T325342 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Updated] T324329: Document importance of site parameter on pywikibot.WbTime
RPI2026F1 removed a parent task: T325342: Add pywikibot.WbTime.now(). TASK DETAIL https://phabricator.wikimedia.org/T324329 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Urstrulykkr, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Updated] T325342: Add pywikibot.WbTime.now()
RPI2026F1 added a subtask: T324329: Document importance of site parameter on pywikibot.WbTime. TASK DETAIL https://phabricator.wikimedia.org/T325342 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Updated] T324329: Document importance of site parameter on pywikibot.WbTime
RPI2026F1 added a parent task: T325342: Add pywikibot.WbTime.now(). TASK DETAIL https://phabricator.wikimedia.org/T324329 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Urstrulykkr, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T325248: Implement __eq__ that does not care about timezones
RPI2026F1 changed the status of subtask T325864: pywikibot.WbTime.fromTimestamp discards timezone information from In Progress to Stalled. TASK DETAIL https://phabricator.wikimedia.org/T325248 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Changed Status] T325864: pywikibot.WbTime.fromTimestamp discards timezone information
RPI2026F1 changed the task status from "In Progress" to "Stalled". TASK DETAIL https://phabricator.wikimedia.org/T325864 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T325864: pywikibot.WbTime.fromTimestamp discards timezone information
RPI2026F1 changed the status of subtask T325866: pywikibot.WbTime does not correctly apply timezone information during comparisons from Open to In Progress. TASK DETAIL https://phabricator.wikimedia.org/T325864 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Started] T325866: pywikibot.WbTime does not correctly apply timezone information during comparisons
RPI2026F1 claimed this task. RPI2026F1 triaged this task as "Medium" priority. RPI2026F1 changed the task status from "Open" to "In Progress". TASK DETAIL https://phabricator.wikimedia.org/T325866 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325866: pywikibot.WbTime does not correctly apply timezone information during comparisons
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot-Wikidata, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): ts1 = pywikibot.Timestamp( year=2022, month=12, day=21, hour=13, tzinfo=datetime.timezone(datetime.timedelta(hours=-5))) ts2 = pywikibot.Timestamp( year=2022, month=12, day=21, hour=17, tzinfo=datetime.timezone.utc) ts1.timestamp() > ts2.timestamp() # True t1 = pywikibot.WbTime.fromTimestamp(ts1, timezone=-300) t2 = pywikibot.WbTime.fromTimestamp(ts2, timezone=0) t1 > t2 # False? **What happens?**: Timestamps that should be greater than are not. **What should have happened instead?**: They should be greater than. **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): When I made the comparison operators, I accidentally applied the timezone shift backwards. TASK DETAIL https://phabricator.wikimedia.org/T325866 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T325248: Implement __eq__ that does not care about timezones
RPI2026F1 changed the status of subtask T325864: pywikibot.WbTime.fromTimestamp discards timezone information from Open to In Progress. TASK DETAIL https://phabricator.wikimedia.org/T325248 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Started] T325864: pywikibot.WbTime.fromTimestamp discards timezone information
RPI2026F1 claimed this task. RPI2026F1 triaged this task as "Medium" priority. RPI2026F1 changed the task status from "Open" to "In Progress". TASK DETAIL https://phabricator.wikimedia.org/T325864 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325864: pywikibot.WbTime.fromTimestamp discards timezone information
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot-Wikidata, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): import zoneinfo # This is the stdlib version of pytz, only available in python 3.9+ x = pywikibot.Timestamp(year=2022, month=12, day=21, hour=12, tzinfo=zoneinfo.ZoneInfo("America/New_York")) y = pywikibot.Timestamp(year=2022, month=12, day=21, hour=17, tzinfo=zoneinfo.ZoneInfo("UTC")) xt = pywikibot.WbTime.fromTimestamp(x) yt = pywikibot.WbTime.fromTimestamp(y) print(x.timestamp() == y.timestamp()) # Should be true print(xt._getSecondsAdjusted() == yt._getSecondsAdjusted()) # Should be true **What happens?**: First line is true and second line is false since all timestamps are treated like they are in the same timezone even if the timestamp has a tzinfo property. **What should have happened instead?**: Both lines should be true. **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): TASK DETAIL https://phabricator.wikimedia.org/T325864 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T148280: WbTime comparison is incorrect
RPI2026F1 changed the status of subtask T325863: Comparison operators do not do identity check before comparing from Open to In Progress. TASK DETAIL https://phabricator.wikimedia.org/T148280 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Lokal_Profil, gerritbot, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, dom_walden, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Started] T325863: Comparison operators do not do identity check before comparing
RPI2026F1 claimed this task. RPI2026F1 triaged this task as "High" priority. RPI2026F1 changed the task status from "Open" to "In Progress". TASK DETAIL https://phabricator.wikimedia.org/T325863 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325863: Comparison operators do not do identity check before comparing
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot-Wikidata, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): - `pywikibot.WbTime(year=5) <= 5` - - **What happens?**: AttributeError: 'int' object has no attribute '_getSecondsAdjusted' **What should have happened instead?**: `TypeError: '<' not supported between instances of 'WbTime' and 'int'` **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): TASK DETAIL https://phabricator.wikimedia.org/T325863 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325862: Rename pywikibot's "async" kwargs
RPI2026F1 created this task. RPI2026F1 added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION Pywikibot has a feature that allows you to run the request in the background. However, I feel the name "async" is kind of misleading, because it implies that it does something with the `asyncio` library or that it returns a coroutine, but the parameter does neither. Instead, calling it something like "background" makes more sense since that's what it's doing -- running the request in the background. TASK DETAIL https://phabricator.wikimedia.org/T325862 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T123888: Incorrect default month and day for WbTime
RPI2026F1 changed the status of subtask T325860: Unable to submit any pywikibot.WbTime with hour/minute/second even if precision is day or lower from Open to Stalled. TASK DETAIL https://phabricator.wikimedia.org/T123888 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Multichill, Aklapper, StudiesWorld, pywikibot-bugs-list, Lokal_Profil, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, dom_walden, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Changed Status] T325860: Unable to submit any pywikibot.WbTime with hour/minute/second even if precision is day or lower
RPI2026F1 claimed this task. RPI2026F1 triaged this task as "Medium" priority. RPI2026F1 changed the task status from "Open" to "Stalled". RPI2026F1 added a comment. This can be easily fixed by normalizing the WbTime object whenever it's assigned to a claim. However, it means that the WbTime that's in the claim is no longer the same WbTime instance outside, so you couldn't modify the WbTime and have the changes propagate to the internal WbTime without setting it again. TASK DETAIL https://phabricator.wikimedia.org/T325860 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325860: Unable to submit any pywikibot.WbTime with hour/minute/second even if precision is day or lower
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to replicate the issue** (include links if applicable): site = pywikibot.Site("wikidata", "wikidata") item = pywikibot.ItemPage(site, "Q4115189") claim = pywikibot.Claim(site, "P580") claim.setTarget(pywikibot.WbTime(year=2022, hour=5, precision=11)) item.addClaim(claim) **What happens?**: WARNING: API error modification-failed: Malformed input: +2022-01-01T05:00:00Z --- APIError Traceback (most recent call last) File /srv/paws/pwb/pywikibot/page/_decorators.py:34, in _allow_asynchronous..handle(func, self, *args, **kwargs) 33 try: ---> 34 func(self, *args, **kwargs) 35 # TODO: other "expected" error types to catch? File /srv/paws/pwb/pywikibot/page/_wikibase.py:740, in WikibasePage.addClaim(self, claim, bot, **kwargs) 738 raise ValueError( 739 'The provided Claim instance is already used in an entity') --> 740 self.repo.addClaim(self, claim, bot=bot, **kwargs) 741 claim.on_item = self File /srv/paws/pwb/pywikibot/site/_decorators.py:92, in need_right..decorator..callee(self, *args, **kwargs) 89 raise UserRightsError('User "{}" does not have required ' 90 'user right "{}"' 91 .format(self.user(), right)) ---> 92 return fn(self, *args, **kwargs) File /srv/paws/pwb/pywikibot/site/_datasite.py:324, in DataSite.addClaim(self, entity, claim, bot, summary) 323 req = self.simple_request(**params) --> 324 data = req.submit() 325 # Update the item File /srv/paws/pwb/pywikibot/data/api/_requests.py:1108, in Request.submit(self) 1106 pywikibot.log(' response=\n{}'.format(result)) -> 1108 raise pywikibot.exceptions.APIError(**error) 1109 except TypeError: APIError: modification-failed: Malformed input: +2022-01-01T05:00:00Z [messages: [{'name': 'wikibase-validator-malformed-value', 'parameters': ['+2022-01-01T05:00:00Z'], 'html': {'*': 'Malformed input: +2022-01-01T05:00:00Z'}}]; servedby: mw1402; help: See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/; for notice of API deprecations and breaking changes.] During handling of the above exception, another exception occurred: OtherPageSaveErrorTraceback (most recent call last) Cell In[24], line 1 > 1 item.addClaim(claim) File /srv/paws/pwb/pywikibot/page/_decorators.py:55, in _allow_asynchronous..wrapper(self, *args, **kwargs) 53 pywikibot.async_request(handle, func, self, *args, **kwargs) 54 else: ---> 55 handle(func, self, *args, **kwargs) File /srv/paws/pwb/pywikibot/page/_decorators.py:47, in _allow_asynchronous..handle(func, self, *args, **kwargs) 45 if isinstance(err, PageSaveRelatedError): 46 raise err ---> 47 raise OtherPageSaveError(self, err) 48 if callback: 49 callback(self, err) OtherPageSaveError: Edit to page [[wikidata:Q4115189]] failed: modification-failed: Malformed input: +2022-01-01T05:00:00Z [messages: [{'name': 'wikibase-validator-malformed-value', 'parameters': ['+2022-01-01T05:00:00Z'], 'html': {'*': 'Malformed input: +2022-01-01T05:00:00Z'}}]; servedby: mw1402; help: See https://www.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/; for notice of API deprecations and breaking changes.] **What should have happened instead?**: The time should be accepted. **Software version** (skip for WMF-hosted wikis like Wikipedia): **Other information** (browser name/version, screenshots, etc.): This makes making a WbTime via `fromTimestamp()` impossible because it copies everything including hours, minutes and seconds even when a precision of day or lower is given. TASK DETAIL https://phabricator.wikimedia.org/T325860 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, dom_walden, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordis
[Pywikipedia-bugs] [Maniphest] [Unblock] T123888: Incorrect default month and day for WbTime
RPI2026F1 closed subtask T148280: WbTime comparison is incorrect as Resolved. TASK DETAIL https://phabricator.wikimedia.org/T123888 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Multichill, Aklapper, StudiesWorld, pywikibot-bugs-list, Lokal_Profil, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Closed] T148280: WbTime comparison is incorrect
RPI2026F1 closed this task as "Resolved". TASK DETAIL https://phabricator.wikimedia.org/T148280 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Lokal_Profil, gerritbot, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T71286: harvest_template should ignore placeholder images
RPI2026F1 added a comment. For the category option, it gets tricky because the bot would have to resolve all subdirectories of unknown depth. Also there are a //lot// of files in that category, PetScan <https://petscan.wmflabs.org/?referrer_url=_wiki=_max_results=500=none_labels_no_l=1_labels_any_l=1_language=en%5B6%5D=1=_limit=_sitelink_count==commons%5B0%5D=1_wiki_other==wikimedia=Image_placeholders_no_labels_yes_l=1=_list_wiki==> is showing 2.5 thousand files. Even if just the names were stored, that's a decent amount of pictures. TASK DETAIL https://phabricator.wikimedia.org/T71286 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, Multichill, JAnD, Ricordisamoa, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T74305: Wikidata scripts exit with an exception when the site is not a wikibase client
RPI2026F1 added a comment. Is this not expected behavior if the site is not a Wikibase client? It makes no sense trying to run Wikibase-related scripts for something that isn't linked to Wikibase. TASK DETAIL https://phabricator.wikimedia.org/T74305 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, jayvdb, Ricordisamoa, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Edited] T74305: Wikidata scripts exit with an exception when the site is not a wikibase client
RPI2026F1 updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T74305 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: jayvdb, Ricordisamoa, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Closed] T257013: Pywikibot cannot fetch some wikidata items.
RPI2026F1 closed this task as "Resolved". RPI2026F1 claimed this task. RPI2026F1 added a comment. I don't know what caused it, but the bug seems to not be happening anymore: Input: import pywikibot def test1(): site = pywikibot.Site('en', 'wikipedia') page = pywikibot.Page(site, 'Western Sahara') item = pywikibot.ItemPage.fromPage(page) item.get() print(item) def test2(): site = pywikibot.Site('en', 'wikipedia') repo = site.data_repository() item = pywikibot.ItemPage(repo, 'Q6250') item.get() print(item) test1() test2() Output: [[wikidata:Q6250]] [[wikidata:Q6250]] TASK DETAIL https://phabricator.wikimedia.org/T257013 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, Multichill, Lokal_Profil, Xqt, matej_suchanek, Aklapper, ChongDae, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Started] T325444: Include examples of using datetime objects and current time
RPI2026F1 changed the task status from "Open" to "In Progress". TASK DETAIL https://phabricator.wikimedia.org/T325444 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T325342: Add pywikibot.WbTime.now()
RPI2026F1 changed the status of subtask T325444: Include examples of using datetime objects and current time from Open to In Progress. TASK DETAIL https://phabricator.wikimedia.org/T325342 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325444: Include examples of using datetime objects and current time
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION There are ways to easily both make `pywikibot.WbTime` objects from both an existing datetime object or the current time, but it's not immediately obvious. I think improving the documentation to highlight these cases would be helpful. TASK DETAIL https://phabricator.wikimedia.org/T325444 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Closed] T325342: Add pywikibot.WbTime.now()
RPI2026F1 closed this task as "Invalid". RPI2026F1 added a comment. I just realized that `pywikibot.Timestamp.now()` exists, and can be fed into `pywikibot.WbTime.fromTimestamp()`. TASK DETAIL https://phabricator.wikimedia.org/T325342 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Unblock] T123888: Incorrect default month and day for WbTime
RPI2026F1 closed subtask T325342: Add pywikibot.WbTime.now() as Invalid. TASK DETAIL https://phabricator.wikimedia.org/T123888 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Multichill, Aklapper, StudiesWorld, pywikibot-bugs-list, Lokal_Profil, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T325248: Implement __eq__ that does not care about timezones
RPI2026F1 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T325248 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Changed Status] T325342: Add pywikibot.WbTime.now()
RPI2026F1 changed the task status from "Open" to "Stalled". RPI2026F1 added a comment. For the `now()` method to support setting the precision, I am waiting for normalization to be introduced first. TASK DETAIL https://phabricator.wikimedia.org/T325342 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T123888: Incorrect default month and day for WbTime
RPI2026F1 changed the status of subtask T325342: Add pywikibot.WbTime.now() from Open to Stalled. TASK DETAIL https://phabricator.wikimedia.org/T123888 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Multichill, Aklapper, StudiesWorld, pywikibot-bugs-list, Lokal_Profil, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Updated] T123888: Incorrect default month and day for WbTime
RPI2026F1 added a subtask: T325342: Add pywikibot.WbTime.now(). TASK DETAIL https://phabricator.wikimedia.org/T123888 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Multichill, Aklapper, StudiesWorld, pywikibot-bugs-list, Lokal_Profil, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Updated] T325342: Add pywikibot.WbTime.now()
RPI2026F1 added a parent task: T123888: Incorrect default month and day for WbTime. TASK DETAIL https://phabricator.wikimedia.org/T325342 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325342: Add pywikibot.WbTime.now()
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Feature summary** (what you would like to be able to do and where): Instantly get a WbTime object for the current time. **Use case(s)** (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): Would mean that I no longer need to use `datetime.datetime.now(tz=datetime.timezone.UTC)` and pull the values from there **Benefits** (why should this be implemented?): Reduces boilerplate code TASK DETAIL https://phabricator.wikimedia.org/T325342 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Claimed] T325342: Add pywikibot.WbTime.now()
RPI2026F1 claimed this task. TASK DETAIL https://phabricator.wikimedia.org/T325342 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, pywikibot-bugs-list, RPI2026F1, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T325248: Implement __eq__ that does not care about timezones
RPI2026F1 added a comment. I think the solution is to make a new method that does this, but the question is what to name it. TASK DETAIL https://phabricator.wikimedia.org/T325248 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325248: Implement __eq__ that does not care about timezones
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot-Wikidata, Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Feature summary** (what you would like to be able to do and where): I want to be able to compare two times that are the same "number of seconds" but in different times. **Use case(s)** (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): For example, if I have a time that's 12 AM in UTC, but 1 AM in UTC+1, I might want to know if the number of seconds are the same. The parent task has an internal method that would be helpful, but it's not exposed for `__eq__()` and `__ne__()`. **Benefits** (why should this be implemented?): Those two times mentioned above would occur in the same instant in time, so knowing if they are the same instant has it's uses. TASK DETAIL https://phabricator.wikimedia.org/T325248 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Started] T148280: WbTime comparison is incorrect
RPI2026F1 changed the task status from "Open" to "In Progress". RPI2026F1 changed the subtype of this task from "Task" to "Feature Request". TASK DETAIL https://phabricator.wikimedia.org/T148280 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Lokal_Profil, gerritbot, Xqt, Aklapper, pywikibot-bugs-list, Multichill, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Blocker] T123888: Incorrect default month and day for WbTime
RPI2026F1 changed the status of subtask T148280: WbTime comparison is incorrect from Open to In Progress. TASK DETAIL https://phabricator.wikimedia.org/T123888 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Multichill, Aklapper, StudiesWorld, pywikibot-bugs-list, Lokal_Profil, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Started] T123888: Incorrect default month and day for WbTime
RPI2026F1 claimed this task. RPI2026F1 changed the task status from "Open" to "In Progress". RPI2026F1 raised the priority of this task from "Lowest" to "Low". RPI2026F1 changed the subtype of this task from "Task" to "Bug Report". TASK DETAIL https://phabricator.wikimedia.org/T123888 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Multichill, Aklapper, StudiesWorld, pywikibot-bugs-list, Lokal_Profil, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Triaged] T325241: Represent precision in pywikibot.WbTime as an Enum
RPI2026F1 triaged this task as "Low" priority. TASK DETAIL https://phabricator.wikimedia.org/T325241 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Created] T325241: Represent precision in pywikibot.WbTime as an Enum
RPI2026F1 created this task. RPI2026F1 added projects: Pywikibot, Pywikibot-Wikidata. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Feature summary** (what you would like to be able to do and where): Instead of using a dictionary, using an enum would make more sense, as the precision values are values in an enum. **Use case(s)** (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution): It would lead to clearer code as `pywikibot.WbTime.Precision.year`, and an enum would help make the distinction more clear than just a mapping of key to ints. **Benefits** (why should this be implemented?): Cleaner code TASK DETAIL https://phabricator.wikimedia.org/T325241 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: Aklapper, RPI2026F1, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org
[Pywikipedia-bugs] [Maniphest] [Commented On] T123888: Incorrect default month and day for WbTime
RPI2026F1 added a comment. Actually I think normalization would help solve the problem. The fix then is simple. TASK DETAIL https://phabricator.wikimedia.org/T123888 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: RPI2026F1 Cc: RPI2026F1, thiemowmde, Multichill, Aklapper, StudiesWorld, pywikibot-bugs-list, Lokal_Profil, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Ricordisamoa, Masti, Alchimista ___ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org