Skip to content

Commit c6a142f

Browse files
Datetime: Tidy up docs (GH-144720)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 1636630 commit c6a142f

File tree

4 files changed

+209
-63
lines changed

4 files changed

+209
-63
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ Lib/test/test_dataclasses/ @ericvsmith
424424

425425
# Dates and times
426426
Doc/**/*time.rst @pganssle @abalkin
427+
Doc/library/datetime-* @pganssle
427428
Doc/library/zoneinfo.rst @pganssle
428429
Include/datetime.h @pganssle @abalkin
429430
Include/internal/pycore_time.h @pganssle @abalkin
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Used to generate datetime-inheritance.svg with Graphviz
2+
// (https://graphviz.org/) for the datetime documentation.
3+
4+
digraph {
5+
comment="Generated with datetime-inheritance.dot"
6+
graph [
7+
bgcolor="transparent"
8+
fontnames="svg"
9+
layout="dot"
10+
ranksep=0.5
11+
nodesep=0.5
12+
splines=line
13+
]
14+
node [
15+
fontname="Courier"
16+
fontsize=14.0
17+
shape=box
18+
style=rounded
19+
margin="0.15,0.07"
20+
]
21+
edge [
22+
arrowhead=none
23+
]
24+
25+
object -> tzinfo
26+
object -> timedelta
27+
object -> time
28+
object -> date
29+
tzinfo -> timezone
30+
date -> datetime
31+
}
Lines changed: 84 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)