diff.patch returns wrong dates in Python 3.10
Offen
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 1.7k
- Forks
- 408
- Ø Merge
- 2 T. 57 Min.
- Gemergte PRs (30 T.)
- 7
Beschreibung
The newest version of arrow library doesn't have timestamp property anymore, only method.
When I try to run the pygit2 with latest arrow (arrow==1.2.2) I get this in the output of diff.patch:
diff --git a/ff637b965cc54980ba5d852d662d0793 b/ff637b965cc54980ba5d852d662d0793
index d88c807..1d33f32 100644
--- a/ff637b965cc54980ba5d852d662d0793 +++ b/ff637b965cc54980ba5d852d662d0793 @@ -62,7 +62,9 @@ "content": "We should work on this",
"custom_fields": [],
"date_created": "<bound method Arrow.timestamp of <Arrow [2022-02-02T14:55:22.090307+00:00]>>",
- "depends": [],
+ "depends": [ + "3" + ], "full_url": "http://localhost.localdomain/test/issue/1",
"id": 1,
"last_updated": "<bound method Arrow.timestamp of <Arrow [2022-02-02T14:55:23.637241+00:00]>>",
As you can see there is only a reference to method instead of value.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne beim Pfad diff.patch, der die angezeigten Datumsangaben formatiert, und verfolge, wie Arrow-Zeitstempel serialisiert werden. Reproduziere die Ausgabe mit Python 3.10 und arrow==1.2.2 und überprüfe anschließend, dass diff.patch Zeitstempelwerte statt einer bound-method-Darstellung enthält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- git, python
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100