]> jfr.im git - dlqueue.git/blob - venv/lib/python3.11/site-packages/werkzeug/datastructures/etag.pyi
init: venv aand flask
[dlqueue.git] / venv / lib / python3.11 / site-packages / werkzeug / datastructures / etag.pyi
1 from collections.abc import Collection
2 from collections.abc import Iterable
3 from collections.abc import Iterator
4
5 class ETags(Collection[str]):
6 _strong: frozenset[str]
7 _weak: frozenset[str]
8 star_tag: bool
9 def __init__(
10 self,
11 strong_etags: Iterable[str] | None = None,
12 weak_etags: Iterable[str] | None = None,
13 star_tag: bool = False,
14 ) -> None: ...
15 def as_set(self, include_weak: bool = False) -> set[str]: ...
16 def is_weak(self, etag: str) -> bool: ...
17 def is_strong(self, etag: str) -> bool: ...
18 def contains_weak(self, etag: str) -> bool: ...
19 def contains(self, etag: str) -> bool: ...
20 def contains_raw(self, etag: str) -> bool: ...
21 def to_header(self) -> str: ...
22 def __call__(
23 self,
24 etag: str | None = None,
25 data: bytes | None = None,
26 include_weak: bool = False,
27 ) -> bool: ...
28 def __len__(self) -> int: ...
29 def __iter__(self) -> Iterator[str]: ...
30 def __contains__(self, item: str) -> bool: ... # type: ignore