Update stubs

This commit is contained in:
Trinh Anh Ngoc
2024-07-08 16:23:25 +07:00
parent 161fdd2022
commit 7c2b24f440
4 changed files with 9 additions and 4 deletions

View File

@@ -73,9 +73,12 @@ class Stream:
max_age: int | None max_age: int | None
immutable: bool immutable: bool
size: int | None size: int | None
public: bool
def __init__(self, **kwargs) -> None: ... def __init__(self, **kwargs) -> None: ...
@classmethod @classmethod
def from_path(cls, path: str, filter_ext: tuple[str, ...] = ...) -> Stream: ... def from_path(
cls, path: str, filter_ext: tuple[str, ...] = ..., public: bool = ...
) -> Stream: ...
@classmethod @classmethod
def from_attachment(cls, attachment) -> Stream: ... def from_attachment(cls, attachment) -> Stream: ...
@classmethod @classmethod
@@ -113,7 +116,6 @@ class FilesystemSessionStore(sessions.FilesystemSessionStore):
class Session(MutableMapping): class Session(MutableMapping):
can_save: bool can_save: bool
is_dirty: bool is_dirty: bool
is_explicit: bool
is_new: bool is_new: bool
should_rotate: bool should_rotate: bool
sid: str sid: str

View File

@@ -162,7 +162,10 @@ class ConstantMapping(Mapping[_KT, _VT]):
def __getitem__(self, item) -> _VT: ... def __getitem__(self, item) -> _VT: ...
def dumpstacks( def dumpstacks(
sig: Any | None = ..., frame: Any | None = ..., thread_idents: Any | None = ... sig: Any | None = ...,
frame: Any | None = ...,
thread_idents: Any | None = ...,
log_level=...,
) -> None: ... ) -> None: ...
def freehash(arg) -> int: ... def freehash(arg) -> int: ...
def clean_context(context: dict[str, Any]) -> dict[str, Any]: ... def clean_context(context: dict[str, Any]) -> dict[str, Any]: ...

View File

@@ -43,7 +43,6 @@ class PeriodicCollector(Collector):
name: str name: str
active: bool active: bool
frame_interval: float frame_interval: float
thread: Thread
last_frame: FrameType | None last_frame: FrameType | None
def __init__(self, interval: float = ...) -> None: ... def __init__(self, interval: float = ...) -> None: ...
def run(self) -> None: ... def run(self) -> None: ...

View File

@@ -27,6 +27,7 @@ TRANSLATED_ATTRS: dict[str, Any]
def translate_attrib_value(node: _Element) -> bool: ... def translate_attrib_value(node: _Element) -> bool: ...
avoid_pattern: Pattern avoid_pattern: Pattern
space_pattern: Pattern
def translate_xml_node( def translate_xml_node(
node: _Element, node: _Element,