File: misc.txt

package info (click to toggle)
python-pdoc 15.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,192 kB
  • sloc: python: 8,013; javascript: 1,156; makefile: 18; sh: 3
file content (133 lines) | stat: -rw-r--r-- 6,254 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<module misc
    <class misc.Issue226
        <method def __init__(): ...>
        <var size  # This is the size>
    >
    <var var_with_default_obj = <object object>  # this shouldn't rende…>
    <method def var_with_default_func(): ...  # inherited from misc.default_func, this just renders li…>
    <function def func_with_defaults(a=<object object>, b=<function default_func>): ...  # this shouldn't rende…>
    <class misc.ClassmethodLink  # You can either do

    >…
        <method def __init__(): ...>
        <@classmethod class def bar(cls): ...>
    >
    <class misc.GenericParent  # GenericParent
        <method def __init__(): ...>
    >
    <class misc.NonGenericChild  # NonGenericChild
        <method def __init__(): ...>
    >
    <class misc.Child
        <method def __init__(self): ...  # init>
        <method def foo(self): ...  # foo>
        <@classmethod class def bar(cls): ...  # bar>
        <@staticmethod static def baz(): ...  # baz>
        <var qux  # qux>
        <var quux  # quux>
        <var quuux: int = 42  # quuux>
    >
    <var only_annotated: int>
    <class misc.LambdaAttr
        <method def __init__(): ...>
        <method def attr(x): ...>
    >
    <function def foo(): ...  # no indents>
    <function def bar(): ...  # no
    indents>
    <function def baz(): ...  # one
    indent>
    <function def qux(): ...  # two
    indents>
    <class misc.Indented
        <method def __init__(): ...>
        <method def foo(self): ...  # no indents>
        <method def bar(self): ...  # no
        indents>
        <method def baz(self): ...  # one
        indent>
        <method def qux(self): ...  # two
        indents>
        <@lru_cache() method def foo_decorated(self): ...  # no indents>
        <@lru_cache() method def foo_commented(self): ...  # no indents>
        <@lru_cache() method def bar_decorated(self): ...  # no
        indents>
        <@lru_cache() method def baz_decorated(self): ...  # one
        indent>
        <@lru_cache() method def qux_decorated(self): ...  # two
        indents>
        <@lru_cache(maxsize=42) method def quux_decorated(self): ...  # multi-line decorator…>
    >
    <@_protected_decorator function def fun_with_protected_decorator(): ...  # This function has a …>
    <method def unhashable(unknown): ...>
    <class misc.AbstractClass  # This class shouldn't…
        <@abc.abstractmethod method def foo(self): ...>
    >
    <method def add_four(b: int) -> int: ...  # This function adds t…>
    <method def add_five(b: int) -> int: ...  # This function adds f…>
    <method def add_six(b: int) -> int: ...  # This function adds s…>
    <function def linkify_links(): ...  # This docstring conta…>
    <class misc.Issue352a
        <method def __init__(self): ...  # Issue352.__init__ sh…>
    >
    <class misc.Issue352b  # No docstrings for th…
        <method def __init__(): ...>
    >
    <class misc.CustomCall  # A class where the co…
        <method def __init__(cls, *args, **kwargs): ...  # Custom docstring in …>
    >
    <class misc.Headings  # # Heading 1

    Here is…
        <method def __init__(): ...>
    >
    <function def repr_not_syntax_highlightable(x=°<script>alert(1)</script>): ...  # The default value fo…>
    <class misc.ClassDecorator  # This is a class that…
        <method def __init__(self, func): ...>
    >
    <var another_decorated_function = <misc.ClassDecorator object>  # This is another deco…>
    <class misc.SubclassRef
        <method def __init__(self, x: misc.SubclassRef.SubClass): ...>
        <class misc.SubclassRef.SubClass
            <method def __init__(): ...>
        >
    >
    <class misc.ClassAsAttribute
        <method def __init__(): ...>
        <var static_attr_to_class = <class 'misc.ClassDecorator'>  # this is a static att…>
        <var static_attr_to_instance = <misc.ClassDecorator object>  # this is a static att…>
    >
    <class misc.scheduler  # Test for broken link…
        <method def __init__(
            self,
            timefunc=<built-in function monotonic>,
            delayfunc=<built-in function sleep>
        ): ...  # inherited from sched.scheduler.__init__, Initialize a new ins…>
        <var timefunc  # inherited from sched.scheduler.timefunc>
        <var delayfunc  # inherited from sched.scheduler.delayfunc>
        <method def enterabs(self, time, priority, action, argument=(), kwargs=<object object>): ...  # inherited from sched.scheduler.enterabs, Enter a new event in…>
        <method def enter(self, delay, priority, action, argument=(), kwargs=<object object>): ...  # inherited from sched.scheduler.enter, A variant that speci…>
        <method def cancel(self, event): ...  # inherited from sched.scheduler.cancel, Remove an event from…>
        <method def empty(self): ...  # inherited from sched.scheduler.empty, Check whether the qu…>
        <method def run(self, blocking=True): ...  # inherited from sched.scheduler.run, Execute events until…>
        <var queue  # inherited from sched.scheduler.queue, An ordered list of u…>
    >
    <class misc.__init__  # https://github.com/m…
        <method def __init__(): ...>
    >
    <function def dynamically_modify_docstring1(): ...  # https://github.com/m…>
    <function def dynamically_modify_docstring2(): ...  # https://github.com/m…>
    <@_docstring_modifier function def dynamically_modify_docstring3(): ...  # https://github.com/m…>
    <@_docstring_modifier function def dynamically_modify_docstring4(): ...  # https://github.com/m…>
    <class misc.DocstringFromNew
        <method def __init__(cls, *args, **kwargs): ...  # This is a class with…>
    >
    <class misc.SingleDispatchMethodExample
        <method def __init__(): ...>
        <@functools.singledispatchmethod method def fancymethod(self, str_or_int: Union[str, int]): ...  # A fancy method which…>
        <@fancymethod.register method def fancymethod_handle_str(self, str_to_handle: str): ...  # Fancy method handles…>
    >
    <@dataclass(init=False) class misc.DataclassStructure  # DataclassStructure r…
        <method def __init__(self, /, *args, **kwargs): ...  # inherited from _ctypes.Structure.__init__>
    >
>