MCPcopy
hub / github.com/pandas-dev/pandas / __init__

Method __init__

doc/make.py:41–70  ·  view source on GitHub ↗
(
        self,
        num_jobs="auto",
        include_api=True,
        whatsnew=False,
        single_doc=None,
        verbosity=0,
        warnings_are_errors=False,
        no_browser=False,
    )

Source from the content-addressed store, hash-verified

39 """
40
41 def __init__(
42 self,
43 num_jobs="auto",
44 include_api=True,
45 whatsnew=False,
46 single_doc=None,
47 verbosity=0,
48 warnings_are_errors=False,
49 no_browser=False,
50 ) -> None:
51 self.num_jobs = num_jobs
52 self.include_api = include_api
53 self.whatsnew = whatsnew
54 self.verbosity = verbosity
55 self.warnings_are_errors = warnings_are_errors
56 self.no_browser = no_browser
57
58 if single_doc:
59 single_doc = self._process_single_doc(single_doc)
60 os.environ["SPHINX_PATTERN"] = single_doc
61 elif not include_api:
62 os.environ["SPHINX_PATTERN"] = "-api"
63 elif whatsnew:
64 os.environ["SPHINX_PATTERN"] = "whatsnew"
65
66 self.single_doc_html = None
67 if single_doc and single_doc.endswith(".rst"):
68 self.single_doc_html = os.path.splitext(single_doc)[0] + ".html"
69 elif single_doc:
70 self.single_doc_html = f"reference/api/pandas.{single_doc}.html"
71
72 def _process_single_doc(self, single_doc):
73 """

Callers

nothing calls this directly

Calls 2

_process_single_docMethod · 0.95
endswithMethod · 0.80

Tested by

no test coverage detected