GRAYBYTE WORDPRESS FILE MANAGER2160

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python37/lib64/python3.7/site-packages/pyrsistent/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python37/lib64/python3.7/site-packages/pyrsistent//__init__.pyi
# flake8: noqa: E704
# from https://gist.github.com/WuTheFWasThat/091a17d4b5cab597dfd5d4c2d96faf09
# Stubs for pyrsistent (Python 3.6)

from typing import Any
from typing import AnyStr
from typing import Callable
from typing import Iterable
from typing import List
from typing import Optional
from typing import Mapping
from typing import MutableMapping
from typing import Sequence
from typing import Set
from typing import Union
from typing import Tuple
from typing import Type
from typing import TypeVar
from typing import overload

from pyrsistent.typing import PBag as PBag
from pyrsistent.typing import PDeque as PDeque
from pyrsistent.typing import PList as PList
from pyrsistent.typing import PMap as PMap
from pyrsistent.typing import PMapEvolver as PMapEvolver
from pyrsistent.typing import PSet as PSet
from pyrsistent.typing import PSetEvolver as PSetEvolver
from pyrsistent.typing import PVector as PVector
from pyrsistent.typing import PVectorEvolver as PVectorEvolver

KT = TypeVar('KT')
VT = TypeVar('VT')

def pmap(initial: Mapping[KT, VT] = {}, pre_size: int = 0) -> PMap[KT, VT]: ...
def m(**kwargs: Mapping[KT, VT]) -> PMap[KT, VT]: ...

T = TypeVar('T')

def pvector(iterable: Iterable[T]) -> PVector[T]: ...
def v(*iterable: Iterable[T]) -> PVector[T]: ...

def pset(iterable: Iterable[T] = (), pre_size: int = 8) -> PSet[T]: ...
def s(*iterable: Iterable[T]) -> PSet[T]: ...

# The actual return value (_PField) is irrelevant after a PRecord has been instantiated,
# see https://github.com/tobgu/pyrsistent/blob/master/pyrsistent/_precord.py#L10
def field(
    type: Union[Type[T], Sequence[Type[T]]] = (),
    invariant: Callable[[Any], Tuple[bool, Optional[str]]] = lambda _: (True, None),
    initial: Any = object(),
    mandatory: bool = False,
    factory: Callable[[Any], T] = lambda x: x,
    serializer: Callable[[Any, T], Any] = lambda _, value: value,
) -> T: ...

def pset_field(
    item_type: Type[T],
    optional: bool = False,
    initial: Any = (),
) -> PSet[T]: ...

def pmap_field(
    key_type: Type[KT],
    value_type: Type[VT],
    optional: bool = False,
    invariant: Callable[[Any], Tuple[bool, Optional[str]]] = lambda _: (True, None),
) -> PMap[KT, VT]: ...

def pvector_field(
    item_type: Type[T],
    optional: bool = False,
    initial: Any = (),
) -> PVector[T]: ...

def pbag(elements: Iterable[T]) -> PBag[T]: ...
def b(*elements: Iterable[T]) -> PBag[T]: ...

def plist(iterable: Iterable[T] = (), reverse: bool = False) -> PList[T]: ...
def l(*elements: Iterable[T]) -> PList[T]: ...

def pdeque(iterable: Iterable[T], maxlen: Optional[int] = None) -> PDeque[T]: ...
def dq(*iterable: Iterable[T]) -> PDeque[T]: ...

def optional(*typs: Iterable[type]) -> Iterable[type]: ...

T_PRecord = TypeVar('T_PRecord', bound='PRecord')
class PRecord(PMap[AnyStr, Any]):
    _precord_fields: dict
    _precord_initial_values: dict

    def __init__(self, **kwargs: Any) -> None: ...
    @classmethod
    def create(
        cls: Type[T_PRecord],
        kwargs: Mapping,
        _factory_fields: Optional[Iterable] = None,
        ignore_extra: bool = False,
    ) -> T_PRecord: ...
    # This is OK because T_PRecord is a concrete type
    def discard(self: T_PRecord, key: KT) -> T_PRecord: ...
    def remove(self: T_PRecord, key: KT) -> T_PRecord: ...
    def set(self: T_PRecord, key: KT, val: VT) -> T_PRecord: ...

    def serialize(format: Any = None) -> MutableMapping: ...
    # From pyrsistent documentation:
    #   This set function differs slightly from that in the PMap
    #   class. First of all it accepts key-value pairs. Second it accepts multiple key-value
    #   pairs to perform one, atomic, update of multiple fields.
    @overload
    def set(self, key: KT, val: VT) -> Any: ...
    @overload
    def set(self, **kwargs: VT) -> Any: ...

def immutable(
    members: Union[str, Iterable[str]] = '',
    name: str = 'Immutable',
    verbose: bool = False,
) -> Tuple: ...  # actually a namedtuple

@overload
def freeze(o: Mapping[KT, VT]) -> PMap[KT, VT]: ...
@overload
def freeze(o: List[T]) -> PVector[T]: ...
@overload
def freeze(o: Tuple[T, ...]) -> Tuple[T, ...]: ...
@overload
def freeze(o: Set[T]) -> PSet[T]: ...

@overload
def thaw(o: PMap[KT, VT]) -> Mapping[KT, VT]: ...
@overload
def thaw(o: PVector[T]) -> List[T]: ...
@overload
def thaw(o: Tuple[T, ...]) -> Tuple[T, ...]: ...
# collections.abc.MutableSet is kind of garbage:
# https://stackoverflow.com/questions/24977898/why-does-collections-mutableset-not-bestow-an-update-method
@overload
def thaw(o: PSet[T]) -> Set[T]: ...

def mutant(fn: Callable) -> Callable: ...

def inc(x: int) -> int: ...
@overload
def discard(evolver: PMapEvolver[KT, VT], key: KT) -> None: ...
@overload
def discard(evolver: PVectorEvolver[T], key: int) -> None: ...
@overload
def discard(evolver: PSetEvolver[T], key: T) -> None: ...
def rex(expr: str) -> Callable[[Any], bool]: ...
def ny(_: Any) -> bool: ...

def get_in(keys: Iterable, coll: Mapping, default: Optional[Any] = None, no_default: bool = False) -> Any: ...

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 23 2024 08:32:25
root / linksafe
0755
__pycache__
--
March 03 2024 23:10:52
root / linksafe
0755
__init__.py
1.444 KB
July 07 2018 13:53:48
root / linksafe
0644
__init__.pyi
4.928 KB
December 19 2018 21:07:14
root / linksafe
0644
_checked_types.py
17.883 KB
October 14 2018 10:06:35
root / linksafe
0644
_compat.py
0.509 KB
October 14 2018 10:06:35
root / linksafe
0644
_field_common.py
10.551 KB
October 14 2018 10:06:35
root / linksafe
0644
_helpers.py
2.417 KB
July 07 2018 13:53:48
root / linksafe
0644
_immutable.py
3.476 KB
July 08 2018 07:16:39
root / linksafe
0644
_pbag.py
6.596 KB
October 14 2018 10:06:35
root / linksafe
0644
_pclass.py
9.178 KB
November 17 2018 05:52:33
root / linksafe
0644
_pdeque.py
11.898 KB
October 14 2018 10:06:35
root / linksafe
0644
_plist.py
8.088 KB
October 14 2018 10:06:35
root / linksafe
0644
_pmap.py
14.3 KB
October 14 2018 10:06:35
root / linksafe
0644
_precord.py
6.42 KB
November 17 2018 05:52:33
root / linksafe
0644
_pset.py
5.584 KB
October 14 2018 10:06:35
root / linksafe
0644
_pvector.py
22.198 KB
October 14 2018 10:06:35
root / linksafe
0644
_toolz.py
3.347 KB
July 07 2018 13:53:48
root / linksafe
0644
_transformations.py
3.499 KB
July 07 2018 13:53:48
root / linksafe
0644
py.typed
0 KB
November 20 2018 21:52:04
root / linksafe
0644
typing.py
1.382 KB
November 17 2018 05:52:33
root / linksafe
0644
typing.pyi
6.865 KB
November 20 2018 21:52:04
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF