-
-
Notifications
You must be signed in to change notification settings - Fork 222
Expand file tree
/
Copy pathmisc_py312.txt
More file actions
executable file
·13 lines (13 loc) · 817 Bytes
/
misc_py312.txt
File metadata and controls
executable file
·13 lines (13 loc) · 817 Bytes
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: misc_py312.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…>
>
>