types-objgraph 3.6.0.20240907__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ version = "3.6.*"
2
+ upstream_repository = "https://github.com/mgedmin/objgraph"
@@ -0,0 +1,91 @@
1
+ from _typeshed import Incomplete, SupportsWrite
2
+ from collections import defaultdict
3
+ from collections.abc import Callable, Container, Iterable
4
+ from types import ModuleType
5
+ from typing import Final, Literal
6
+ from typing_extensions import TypeAlias, TypeGuard
7
+
8
+ IS_INTERACTIVE: bool
9
+
10
+ __author__: Final[str]
11
+ __copyright__: Final[str]
12
+ __license__: Final[str]
13
+ __version__: Final[str]
14
+ __date__: Final[str]
15
+
16
+ # GraphViz has types, but does not include the py.typed file.
17
+ # See https://github.com/xflr6/graphviz/pull/180
18
+ _GraphvizSource: TypeAlias = Incomplete
19
+ _Filter: TypeAlias = Callable[[object], bool]
20
+
21
+ def count(typename: str, objects: Iterable[object] | None = None) -> int: ...
22
+ def typestats(
23
+ objects: Iterable[object] | None = None, shortnames: bool = True, filter: _Filter | None = None
24
+ ) -> dict[str, int]: ...
25
+ def most_common_types(
26
+ limit: int = 10, objects: Iterable[object] | None = None, shortnames: bool = True, filter: _Filter | None = None
27
+ ) -> list[tuple[str, int]]: ...
28
+ def show_most_common_types(
29
+ limit: int = 10,
30
+ objects: Iterable[object] | None = None,
31
+ shortnames: bool = True,
32
+ file: SupportsWrite[str] | None = None,
33
+ filter: _Filter | None = None,
34
+ ) -> None: ...
35
+ def growth(
36
+ limit: int = 10, peak_stats: dict[str, int] = {}, shortnames: bool = True, filter: _Filter | None = None
37
+ ) -> list[tuple[str, int, int]]: ...
38
+ def show_growth(
39
+ limit: int = 10,
40
+ peak_stats: dict[str, int] | None = None,
41
+ shortnames: bool = True,
42
+ file: SupportsWrite[str] | None = None,
43
+ filter: _Filter | None = None,
44
+ ) -> None: ...
45
+ def get_new_ids(
46
+ skip_update: bool = False,
47
+ limit: int = 10,
48
+ sortby: Literal["old", "current", "new", "deltas"] = "deltas",
49
+ shortnames: bool | None = None,
50
+ file: SupportsWrite[str] | None = None,
51
+ ) -> defaultdict[str, set[int]]: ...
52
+ def get_leaking_objects(objects: Iterable[object] | None = None) -> list[object]: ...
53
+ def by_type(typename: str, objects: Iterable[object] | None = None) -> list[object]: ...
54
+ def at(addr: int) -> object: ...
55
+ def at_addrs(address_set: Container[int]) -> list[object]: ...
56
+ def find_ref_chain(obj: object, predicate: _Filter, max_depth: int = 20, extra_ignore: Iterable[int] = ()) -> list[object]: ...
57
+ def find_backref_chain(
58
+ obj: object, predicate: _Filter, max_depth: int = 20, extra_ignore: Iterable[int] = ()
59
+ ) -> list[object]: ...
60
+ def show_backrefs(
61
+ objs: object,
62
+ max_depth: int = 3,
63
+ extra_ignore: Iterable[int] = (),
64
+ filter: _Filter | None = None,
65
+ too_many: int = 10,
66
+ highlight: object = None,
67
+ filename: str | None = None,
68
+ extra_info: Callable[[object], str] | None = None,
69
+ refcounts: bool = False,
70
+ shortnames: bool = True,
71
+ output: SupportsWrite[str] | None = None,
72
+ extra_node_attrs: Callable[[object], dict[str, str]] | None = None,
73
+ ) -> None | _GraphvizSource: ...
74
+ def show_refs(
75
+ objs: object,
76
+ max_depth: int = 3,
77
+ extra_ignore: Iterable[int] = (),
78
+ filter: _Filter | None = None,
79
+ too_many: int = 10,
80
+ highlight: object = None,
81
+ filename: str | None = None,
82
+ extra_info: Callable[[object], str] | None = None,
83
+ refcounts: bool = False,
84
+ shortnames: bool = True,
85
+ output: SupportsWrite[str] | None = None,
86
+ extra_node_attrs: Callable[[object], dict[str, str]] | None = None,
87
+ ) -> None | _GraphvizSource: ...
88
+ def show_chain(
89
+ *chains: list[object], obj: object, predicate: _Filter, max_depth: int = 20, extra_ignore: Iterable[int] = ()
90
+ ) -> None: ...
91
+ def is_proper_module(obj: object) -> TypeGuard[ModuleType]: ...
File without changes
@@ -0,0 +1,38 @@
1
+ Metadata-Version: 2.1
2
+ Name: types-objgraph
3
+ Version: 3.6.0.20240907
4
+ Summary: Typing stubs for objgraph
5
+ Home-page: https://github.com/python/typeshed
6
+ License: Apache-2.0
7
+ Project-URL: GitHub, https://github.com/python/typeshed
8
+ Project-URL: Changes, https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/objgraph.md
9
+ Project-URL: Issue tracker, https://github.com/python/typeshed/issues
10
+ Project-URL: Chat, https://gitter.im/python/typing
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Typing :: Stubs Only
14
+ Requires-Python: >=3.8
15
+ Description-Content-Type: text/markdown
16
+
17
+ ## Typing stubs for objgraph
18
+
19
+ This is a [PEP 561](https://peps.python.org/pep-0561/)
20
+ type stub package for the [`objgraph`](https://github.com/mgedmin/objgraph) package.
21
+ It can be used by type-checking tools like
22
+ [mypy](https://github.com/python/mypy/),
23
+ [pyright](https://github.com/microsoft/pyright),
24
+ [pytype](https://github.com/google/pytype/),
25
+ PyCharm, etc. to check code that uses
26
+ `objgraph`.
27
+
28
+ This version of `types-objgraph` aims to provide accurate annotations
29
+ for `objgraph==3.6.*`.
30
+ The source for this package can be found at
31
+ https://github.com/python/typeshed/tree/main/stubs/objgraph. All fixes for
32
+ types and metadata should be contributed there.
33
+
34
+ See https://github.com/python/typeshed/blob/main/README.md for more details.
35
+ This package was generated from typeshed commit
36
+ [`e8e9291c76f50c3bcde79e7bb61060f5c24c054e`](https://github.com/python/typeshed/commit/e8e9291c76f50c3bcde79e7bb61060f5c24c054e) and was tested
37
+ with mypy 1.11.1, pyright 1.1.379, and
38
+ pytype 2024.4.11.
@@ -0,0 +1,7 @@
1
+ objgraph-stubs/METADATA.toml,sha256=iN-p03zd39HXJy1R_j6jsoLX587UKLEWjev8RD1Ar7k,78
2
+ objgraph-stubs/__init__.pyi,sha256=mKMk1-W1CeaFSJanmE_UnBocHnDKCLFT__gc_BVUH6I,3533
3
+ objgraph-stubs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ types_objgraph-3.6.0.20240907.dist-info/METADATA,sha256=YmLzXkakZ3H8A1CRII7r7OC6GN5XG_6bK2H-yf5beE0,1650
5
+ types_objgraph-3.6.0.20240907.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
6
+ types_objgraph-3.6.0.20240907.dist-info/top_level.txt,sha256=1raElehqImZWsTmoEyg8WThmbT1duZa1OtTW6WnynZE,15
7
+ types_objgraph-3.6.0.20240907.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.44.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ objgraph-stubs