MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/doctest.py:853–873  ·  view source on GitHub ↗

Create a new doctest finder. The optional argument `parser` specifies a class or function that should be used to create new DocTest objects (or objects that implement the same interface as DocTest). The signature for this factory function should match the s

(self, verbose=False, parser=DocTestParser(),
                 recurse=True, exclude_empty=True)

Source from the content-addressed store, hash-verified

851 """
852
853 def __init__(self, verbose=False, parser=DocTestParser(),
854 recurse=True, exclude_empty=True):
855 """
856 Create a new doctest finder.
857
858 The optional argument `parser` specifies a class or
859 function that should be used to create new DocTest objects (or
860 objects that implement the same interface as DocTest). The
861 signature for this factory function should match the signature
862 of the DocTest constructor.
863
864 If the optional argument `recurse` is false, then `find` will
865 only examine the given object, and not any contained objects.
866
867 If the optional argument `exclude_empty` is false, then `find`
868 will include tests for objects with empty docstrings.
869 """
870 self._parser = parser
871 self._verbose = verbose
872 self._recurse = recurse
873 self._exclude_empty = exclude_empty
874
875 def find(self, obj, name=None, module=None, globs=None, extraglobs=None):
876 """

Callers

nothing calls this directly

Calls 1

DocTestParserClass · 0.85

Tested by

no test coverage detected