-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathinit_makers.pyi
More file actions
44 lines (31 loc) · 1.09 KB
/
Copy pathinit_makers.pyi
File metadata and controls
44 lines (31 loc) · 1.09 KB
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
# Authors: Sylvain MARIE <sylvain.marie@se.com>
# + All contributors to <https://github.com/smarie/python-pyfields>
#
# License: 3-clause BSD, <https://github.com/smarie/python-pyfields/blob/master/LICENSE>
from typing import Union, Any, Callable, Iterable
from pyfields.core import Field
def init_fields(*fields: Union[Field, Any],
init_args_before: bool = True,
ancestor_fields_first: bool = True
):
...
def inject_fields(*fields: Union[Field, Any],
):
...
def make_init(*fields: Union[Field, Any],
post_init_fun: Callable = None,
post_init_args_before: bool = True,
ancestor_fields_first: bool = True
) -> Callable:
...
class InitDescriptor(object):
def init(self, obj): ...
...
class InjectedInitFieldsArg(object):
...
def create_init(fields: Iterable[Field],
user_init_fun: Callable[[...], Any] = None,
inject_fields: bool = False,
user_init_args_before: bool = True
):
...