Python Library Caching
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  1. @import url('classic.css');
  2. /* Common colours */
  3. :root {
  4. --good-color: rgb(41 100 51);
  5. --good-border: rgb(79 196 100);
  6. --middle-color: rgb(133 72 38);
  7. --middle-border: rgb(244, 227, 76);
  8. --bad-color: rgb(159 49 51);
  9. --bad-border: rgb(244, 76, 78);
  10. }
  11. /* unset some styles from the classic stylesheet */
  12. div.document,
  13. div.body,
  14. div.related,
  15. div.body h1,
  16. div.body h2,
  17. div.body h3,
  18. div.body h4,
  19. div.body h5,
  20. div.body h6,
  21. div.sphinxsidebar a,
  22. div.sphinxsidebar p,
  23. div.sphinxsidebar ul,
  24. div.sphinxsidebar h3,
  25. div.sphinxsidebar h3 a,
  26. div.sphinxsidebar h4,
  27. .menu a,
  28. .menu p,
  29. .menu ul,
  30. .menu h3,
  31. .menu h3 a,
  32. .menu h4,
  33. table.docutils td,
  34. table.indextable tr.cap,
  35. pre {
  36. background-color: inherit;
  37. color: inherit;
  38. }
  39. /* Add underlines to links */
  40. a[href] {
  41. text-decoration: underline 1px;
  42. }
  43. /* Increase the underline offset for code to avoid obscuring underscores */
  44. a[href]:has(> code) {
  45. text-underline-offset: 0.25em;
  46. }
  47. /* No underline for navigation */
  48. a.headerlink,
  49. div.genindex-jumpbox a,
  50. div.modindex-jumpbox a,
  51. div#search-results a,
  52. div.sphinxsidebar a,
  53. div.toctree-wrapper a,
  54. div[role=navigation] a,
  55. table.contentstable a,
  56. table.indextable a {
  57. text-decoration: none;
  58. }
  59. /* Except when hovered */
  60. div.genindex-jumpbox a:hover,
  61. div.modindex-jumpbox a:hover,
  62. div#search-results a:hover,
  63. div.sphinxsidebar a:hover,
  64. div.toctree-wrapper a:hover,
  65. div[role=navigation] a:hover,
  66. table.contentstable a:hover,
  67. table.indextable a:hover {
  68. text-decoration: underline;
  69. text-underline-offset: auto;
  70. }
  71. body {
  72. margin-left: 1em;
  73. margin-right: 1em;
  74. }
  75. .mobile-nav,
  76. .menu-wrapper {
  77. display: none;
  78. }
  79. div.related {
  80. margin-top: 0.5em;
  81. margin-bottom: 1.2em;
  82. padding: 0.5em 0;
  83. border-width: 1px;
  84. border-color: #ccc;
  85. }
  86. .mobile-nav + div.related {
  87. border-bottom-style: solid;
  88. }
  89. .document + div.related {
  90. border-top-style: solid;
  91. }
  92. div.related a:hover {
  93. color: #0095c4;
  94. }
  95. .related .switchers {
  96. display: inline-flex;
  97. }
  98. .switchers > div {
  99. margin-right: 5px;
  100. }
  101. div.related ul::after {
  102. content: '';
  103. clear: both;
  104. display: block;
  105. }
  106. .inline-search,
  107. form.inline-search input {
  108. display: inline;
  109. }
  110. form.inline-search input[type='submit'] {
  111. width: 40px;
  112. }
  113. div.document {
  114. display: flex;
  115. /* Don't let long code literals extend beyond the right side of the screen */
  116. overflow-wrap: break-word;
  117. }
  118. /* Don't let long code literals extend beyond the right side of the screen */
  119. span.pre {
  120. white-space: unset;
  121. }
  122. div.sphinxsidebar {
  123. float: none;
  124. position: sticky;
  125. top: 0;
  126. max-height: 100vh;
  127. color: #444;
  128. background-color: #eee;
  129. border-radius: 5px;
  130. line-height: 130%;
  131. font-size: smaller;
  132. }
  133. div.sphinxsidebar h3,
  134. div.sphinxsidebar h4 {
  135. margin-top: 1.5em;
  136. }
  137. div.sphinxsidebarwrapper {
  138. width: 217px;
  139. box-sizing: border-box;
  140. height: 100%;
  141. overflow-x: hidden;
  142. overflow-y: auto;
  143. float: left;
  144. }
  145. div.sphinxsidebarwrapper > h3:first-child {
  146. margin-top: 0.2em;
  147. }
  148. div.sphinxsidebarwrapper > ul > li > ul > li {
  149. margin-bottom: 0.4em;
  150. }
  151. div.sphinxsidebar a:hover {
  152. color: #0095c4;
  153. }
  154. form.inline-search input,
  155. div.sphinxsidebar input,
  156. div.related input {
  157. font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  158. border: 1px solid #999999;
  159. font-size: smaller;
  160. border-radius: 3px;
  161. }
  162. div.sphinxsidebar input[type='text'] {
  163. max-width: 150px;
  164. }
  165. #sidebarbutton {
  166. /* Sphinx 4.x and earlier compat */
  167. height: 100%;
  168. background-color: #CCCCCC;
  169. margin-left: 0;
  170. color: #444444;
  171. font-size: 1.2em;
  172. cursor: pointer;
  173. padding-top: 1px;
  174. float: right;
  175. display: table;
  176. /* after Sphinx 4.x and earlier is dropped, only the below is needed */
  177. width: 12px;
  178. border-radius: 0 5px 5px 0;
  179. border-left: none;
  180. }
  181. #sidebarbutton span {
  182. /* Sphinx 4.x and earlier compat */
  183. display: table-cell;
  184. vertical-align: middle;
  185. }
  186. #sidebarbutton:hover {
  187. background-color: #AAAAAA;
  188. }
  189. div.body {
  190. padding: 0 0 0 1.2em;
  191. }
  192. div.body p, div.body dd, div.body li, div.body blockquote {
  193. text-align: left;
  194. line-height: 1.6;
  195. }
  196. div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6 {
  197. margin: 0;
  198. border: 0;
  199. padding: 0.3em 0;
  200. }
  201. div.body hr {
  202. border: 0;
  203. background-color: #ccc;
  204. height: 1px;
  205. }
  206. div.body pre {
  207. border-radius: 3px;
  208. border: 1px solid #ac9;
  209. }
  210. /* Admonitions */
  211. :root {
  212. --admonition-background: #eee;
  213. --admonition-border: #ccc;
  214. --admonition-color: black;
  215. --attention-background: #bbddff5c;
  216. --attention-border: #0000ff36;
  217. --caution-background: #ffc;
  218. --caution-border: #dd6;
  219. --danger-background: #ffe4e4;
  220. --danger-border: red;
  221. --error-background: #ffe4e4;
  222. --error-border: red;
  223. --hint-background: #dfd;
  224. --hint-border: green;
  225. --seealso-background: #ffc;
  226. --seealso-border: #dd6;
  227. --tip-background: #dfd;
  228. --tip-border: green;
  229. --warning-background: #ffe4e4;
  230. --warning-border: red;
  231. }
  232. div.body div.admonition {
  233. background-color: var(--admonition-background);
  234. border: 1px solid var(--admonition-border);
  235. border-radius: 3px;
  236. color: var(--admonition-color);
  237. }
  238. div.body div.admonition.attention {
  239. background-color: var(--attention-background);
  240. border-color: var(--attention-border);
  241. }
  242. div.body div.admonition.caution {
  243. background-color: var(--caution-background);
  244. border-color: var(--caution-border);
  245. }
  246. div.body div.admonition.danger {
  247. background-color: var(--danger-background);
  248. border-color: var(--danger-border);
  249. }
  250. div.body div.admonition.error {
  251. background-color: var(--error-background);
  252. border-color: var(--error-border);
  253. }
  254. div.body div.admonition.hint {
  255. background-color: var(--hint-background);
  256. border-color: var(--hint-border);
  257. }
  258. div.body div.admonition.seealso {
  259. background-color: var(--seealso-background);
  260. border-color: var(--seealso-border);
  261. }
  262. div.body div.admonition.tip {
  263. background-color: var(--tip-background);
  264. border-color: var(--tip-border);
  265. }
  266. div.body div.admonition.warning {
  267. background-color: var(--warning-background);
  268. border-color: var(--warning-border);
  269. }
  270. div.body div.impl-detail {
  271. border-radius: 3px;
  272. }
  273. div.body div.impl-detail > p {
  274. margin: 0;
  275. }
  276. div.body a {
  277. color: #0072aa;
  278. }
  279. div.body a:visited {
  280. color: #6363bb;
  281. }
  282. div.body a:hover {
  283. color: #00b0e4;
  284. }
  285. tt, code, pre {
  286. font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
  287. font-size: 96.5%;
  288. }
  289. div.body tt,
  290. div.body code {
  291. border-radius: 3px;
  292. }
  293. div.body tt.descname,
  294. div.body code.descname {
  295. font-size: 120%;
  296. }
  297. div.body tt.xref,
  298. div.body a tt,
  299. div.body code.xref,
  300. div.body a code {
  301. font-weight: normal;
  302. }
  303. table.docutils {
  304. border: 1px solid #ddd;
  305. min-width: 20%;
  306. border-radius: 3px;
  307. margin-top: 10px;
  308. margin-bottom: 10px;
  309. }
  310. table.docutils td,
  311. table.docutils th {
  312. border: 1px solid #ddd !important;
  313. border-radius: 3px;
  314. padding: 0.3em 0.5em;
  315. }
  316. table p,
  317. table li {
  318. text-align: left !important;
  319. }
  320. table.docutils th {
  321. background-color: #eee;
  322. }
  323. table.footnote,
  324. table.footnote td {
  325. border: 0 !important;
  326. }
  327. div.footer {
  328. line-height: 150%;
  329. text-align: right;
  330. width: auto;
  331. margin-right: 10px;
  332. }
  333. div.footer a {
  334. text-underline-offset: auto;
  335. }
  336. div.footer a:hover {
  337. color: #0095c4;
  338. }
  339. /* C API return value annotations */
  340. :root {
  341. --refcount: var(--good-color);
  342. --refcount-return-borrowed-ref: var(--middle-color);
  343. }
  344. .refcount {
  345. color: var(--refcount);
  346. }
  347. .refcount.return_borrowed_ref {
  348. color: var(--refcount-return-borrowed-ref)
  349. }
  350. .stableabi {
  351. color: #229;
  352. }
  353. dl > dt span ~ em,
  354. .sig {
  355. font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
  356. }
  357. .toctree-wrapper ul {
  358. padding-left: 20px;
  359. }
  360. .theme-selector {
  361. margin-left: .5em;
  362. }
  363. div.genindex-jumpbox,
  364. div.genindex-jumpbox > p {
  365. display: inline-flex;
  366. flex-wrap: wrap;
  367. }
  368. div.genindex-jumpbox a {
  369. margin: 0 5px;
  370. min-width: 30px;
  371. text-align: center;
  372. }
  373. .copybutton {
  374. cursor: pointer;
  375. position: absolute;
  376. top: 0;
  377. right: 0;
  378. font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
  379. padding-left: 0.2em;
  380. padding-right: 0.2em;
  381. border-radius: 0 3px 0 0;
  382. color: #ac9; /* follows div.body pre */
  383. border-color: #ac9; /* follows div.body pre */
  384. border-style: solid; /* follows div.body pre */
  385. border-width: 1px; /* follows div.body pre */
  386. }
  387. .copybutton[data-hidden='true'] {
  388. text-decoration: line-through;
  389. }
  390. @media (max-width: 1023px) {
  391. /* Body layout */
  392. div.body {
  393. min-width: 100%;
  394. padding: 0;
  395. font-size: 0.875rem;
  396. }
  397. div.bodywrapper {
  398. margin: 0;
  399. }
  400. /* Typography */
  401. div.body h1 {
  402. font-size: 1.625rem;
  403. }
  404. div.body h2 {
  405. font-size: 1.25rem;
  406. }
  407. div.body h3, div.body h4, div.body h5 {
  408. font-size: 1rem;
  409. }
  410. /* Override default styles to make more readable */
  411. div.body ul {
  412. padding-inline-start: 1rem;
  413. }
  414. div.body blockquote {
  415. margin-inline-start: 1rem;
  416. margin-inline-end: 0;
  417. }
  418. /* Remove sidebar and top related bar */
  419. div.related, .sphinxsidebar {
  420. display: none;
  421. }
  422. /* Anchorlinks are not hidden by fixed-positioned navbar when scrolled to */
  423. html {
  424. scroll-padding-top: 40px;
  425. }
  426. body {
  427. margin-top: 40px;
  428. }
  429. /* Top navigation bar */
  430. .mobile-nav {
  431. display: block;
  432. height: 40px;
  433. width: 100%;
  434. position: fixed;
  435. top: 0;
  436. left: 0;
  437. box-shadow: rgba(0, 0, 0, 0.25) 0 0 2px 0;
  438. z-index: 1;
  439. }
  440. .mobile-nav * {
  441. box-sizing: border-box;
  442. }
  443. .nav-content {
  444. position: absolute;
  445. z-index: 1;
  446. height: 40px;
  447. width: 100%;
  448. display: flex;
  449. background-color: white;
  450. }
  451. .nav-items-wrapper {
  452. display: flex;
  453. flex: auto;
  454. padding: .25rem;
  455. align-items: stretch;
  456. }
  457. .nav-logo {
  458. margin-right: 1rem;
  459. flex-shrink: 0;
  460. align-self: center;
  461. }
  462. .nav-content img {
  463. display: block;
  464. width: 20px;
  465. }
  466. .version_switcher_placeholder {
  467. margin-right: 1rem;
  468. }
  469. .version_switcher_placeholder > select {
  470. height: 100%;
  471. }
  472. .nav-content .search {
  473. display: flex;
  474. flex: auto;
  475. border: 1px solid #a9a9a9;
  476. align-items: stretch;
  477. }
  478. .nav-content .search input[type=search] {
  479. border: 0;
  480. padding-left: 24px;
  481. width: 100%;
  482. flex: 1;
  483. }
  484. .nav-content .search input[type=submit] {
  485. height: 100%;
  486. box-shadow: none;
  487. border: 0;
  488. border-left: 1px solid #a9a9a9;
  489. cursor: pointer;
  490. margin-right: 0;
  491. }
  492. .nav-content .search svg {
  493. position: absolute;
  494. align-self: center;
  495. padding-left: 4px;
  496. }
  497. .toggler__input {
  498. display: none;
  499. }
  500. .toggler__label {
  501. width: 40px;
  502. cursor: pointer;
  503. display: flex;
  504. align-items: center;
  505. justify-content: center;
  506. padding: 8px;
  507. flex-shrink: 0;
  508. }
  509. .toggler__label:hover, .toggler__label:focus {
  510. background-color: rgba(127 127 127 / 50%);
  511. }
  512. .toggler__label > span {
  513. position: relative;
  514. flex: none;
  515. height: 2px;
  516. width: 100%;
  517. background: currentColor;
  518. transition: all 400ms ease;
  519. }
  520. .toggler__label > span::before,
  521. .toggler__label > span::after {
  522. content: '';
  523. height: 2px;
  524. width: 100%;
  525. background: inherit;
  526. position: absolute;
  527. left: 0;
  528. top: -8px;
  529. }
  530. .toggler__label > span::after {
  531. top: 8px;
  532. }
  533. .toggler__input:checked ~ nav > .toggler__label span {
  534. transform: rotate(135deg);
  535. }
  536. .toggler__input:checked ~ nav > .toggler__label span::before {
  537. transform: rotate(90deg);
  538. }
  539. .toggler__input:checked ~ nav > .toggler__label span::before,
  540. .toggler__input:checked ~ nav > .toggler__label span::after {
  541. top: 0;
  542. }
  543. .toggler__input:checked:hover ~ nav > .toggler__label span {
  544. transform: rotate(315deg);
  545. }
  546. .toggler__input:checked ~ .menu-wrapper {
  547. visibility: visible;
  548. left: 0;
  549. }
  550. /* Sliding side menu */
  551. .menu-wrapper {
  552. display: block;
  553. position: fixed;
  554. top: 0;
  555. transition: left 400ms ease;
  556. left: -310px;
  557. width: 300px;
  558. height: 100%;
  559. background-color: #eee;
  560. color: #444444;
  561. box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  562. overflow-y: auto;
  563. }
  564. .menu-wrapper.open {
  565. visibility: visible;
  566. left: 0;
  567. }
  568. .menu {
  569. padding: 40px 10px 30px 20px;
  570. }
  571. .menu-wrapper h3,
  572. .menu-wrapper h4 {
  573. margin-bottom: 0;
  574. font-weight: normal;
  575. }
  576. .menu-wrapper h4 {
  577. font-size: 1.3em;
  578. }
  579. .menu-wrapper h3 {
  580. font-size: 1.4em;
  581. }
  582. .menu-wrapper h3 + p,
  583. .menu-wrapper h4 + p {
  584. margin-top: 0.5rem;
  585. }
  586. .menu a {
  587. font-size: smaller;
  588. text-decoration: none;
  589. }
  590. .menu ul {
  591. list-style: none;
  592. line-height: 1.4;
  593. overflow-wrap: break-word;
  594. padding-left: 0;
  595. }
  596. .menu ul ul {
  597. margin-left: 20px;
  598. list-style: square;
  599. }
  600. .menu ul li {
  601. margin-bottom: 0.5rem;
  602. }
  603. .language_switcher_placeholder {
  604. margin-top: 2rem;
  605. }
  606. .language_switcher_placeholder select {
  607. width: 100%;
  608. }
  609. .document {
  610. position: relative;
  611. z-index: 0;
  612. }
  613. /*Responsive tables*/
  614. .responsive-table__container {
  615. width: 100%;
  616. overflow-x: auto;
  617. }
  618. .menu .theme-selector-label {
  619. margin-top: .5em;
  620. display: flex;
  621. width: 100%;
  622. }
  623. .menu .theme-selector {
  624. flex: auto;
  625. }
  626. }
  627. @media (min-width: 1024px) {
  628. div.footer {
  629. margin-top: -2em;
  630. }
  631. }
  632. /* Version change directives */
  633. :root {
  634. --versionadded: var(--good-color);
  635. --versionchanged: var(--middle-color);
  636. --deprecated: var(--bad-color);
  637. --versionadded-border: var(--good-border);
  638. --versionchanged-border: var(--middle-border);
  639. --deprecated-border: var(--bad-border);
  640. }
  641. div.versionadded,
  642. div.versionchanged,
  643. div.deprecated,
  644. div.deprecated-removed {
  645. border-left: 3px solid;
  646. padding: 0 1rem;
  647. }
  648. div.versionadded {
  649. border-left-color: var(--versionadded-border);
  650. }
  651. div.versionchanged {
  652. border-left-color: var(--versionchanged-border);
  653. }
  654. div.deprecated,
  655. div.deprecated-removed,
  656. div.versionremoved {
  657. border-left-color: var(--deprecated-border);
  658. }
  659. div.versionadded .versionmodified {
  660. color: var(--versionadded);
  661. }
  662. div.versionchanged .versionmodified {
  663. color: var(--versionchanged);
  664. }
  665. div.deprecated .versionmodified,
  666. div.deprecated-removed .versionmodified,
  667. div.versionremoved .versionmodified {
  668. color: var(--deprecated);
  669. }