Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ade62ae

Browse filesBrowse files
committed
Use different colour for 'Return value: Borrowed reference'
1 parent 26ca6d7 commit ade62ae
Copy full SHA for ade62ae

2 files changed

+16-3Lines changed: 16 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎python_docs_theme/static/pydoctheme.css‎

Copy file name to clipboardExpand all lines: python_docs_theme/static/pydoctheme.css
+11-1Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,18 @@ div.footer a:hover {
323323
color: #0095c4;
324324
}
325325

326+
/* C API return value annotations */
327+
:root {
328+
--refcount: #060;
329+
--refcount-return-borrowed-ref: rgb(133 72 38);
330+
}
331+
326332
.refcount {
327-
color: #060;
333+
color: var(--refcount);
334+
}
335+
336+
.refcount.return_borrowed_ref {
337+
color: var(--refcount-return-borrowed-ref)
328338
}
329339

330340
.stableabi {
Collapse file

‎python_docs_theme/static/pydoctheme_dark.css‎

Copy file name to clipboardExpand all lines: python_docs_theme/static/pydoctheme_dark.css
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ table.docutils th {
7979
background-color: #424242;
8080
}
8181

82-
.refcount {
83-
color: #afa;
82+
/* C API return value annotations */
83+
84+
:root {
85+
--refcount: #afa;
86+
--refcount-return-borrowed-ref: rgb(244, 227, 76);
8487
}
8588

8689
.stableabi {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.