File: misc_py312.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 (13 lines) | stat: -rwxr-xr-x 806 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
<module misc_py312  # Testing features tha…
    <var MyType = int  # A custom Python 3.12…>
    <var foo: MyType  # A custom type instan…>
    <var MyTypeWithoutDocstring = int>
    <var MyTypeClassic: TypeAlias = int  # inherited from builtins.int, A "classic" typing.T…>
    <class misc_py312.NamedTupleExample  # An example for a typ…
        <method def __init__(_cls, name: str, id: int = 3): ...  # Create new instance …>
        <var name: str  # Name of our example …>
        <var id: int  # Alias for field numb…>
        <method def index(self, value, start=0, stop=9223372036854775807, /): ...  # inherited from builtins.tuple.index, Return first index o…>
        <method def count(self, value, /): ...  # inherited from builtins.tuple.count, Return number of occ…>
    >
>