File: util.pyi

package info (click to toggle)
python-phonenumbers 8.12.57-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,212 kB
  • sloc: python: 332,712; xml: 46,045; makefile: 143; java: 91
file content (47 lines) | stat: -rw-r--r-- 963 bytes parent folder | download | duplicates (2)
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
from collections.abc import Callable
from typing import Any, overload

from _typeshed import SupportsWrite

unicod: type[str]
u: type[str]
to_long: type[int]

@overload
def prnt(
    *values: object,
    sep: str | None = ...,
    end: str | None = ...,
    file: SupportsWrite[str] | None = ...,
) -> None: ...
@overload
def prnt(*values: object, **kwargs: Any) -> None: ...

class UnicodeMixin:
    def __str__(self) -> str: ...

U_EMPTY_STRING: str
U_SPACE: str
U_DASH: str
U_TILDE: str
U_PLUS: str
U_STAR: str
U_ZERO: str
U_SLASH: str
U_SEMICOLON: str
U_X_LOWER: str
U_X_UPPER: str
U_PERCENT: str

def rpr(s: str | None) -> str: ...
@overload
def force_unicode(s: None) -> None: ...
@overload
def force_unicode(s: str) -> str: ...

class ImmutableMixin:
    _mutable: bool
    def __setattr__(self, name: str, value: Any) -> None: ...
    def __delattr__(self, name: str) -> None: ...

def mutating_method(func: Callable[..., Any]) -> Callable[..., Any]: ...