types-atheris 2.3.0.20240831__tar.gz
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.
- types-atheris-2.3.0.20240831/CHANGELOG.md +4 -0
- types-atheris-2.3.0.20240831/MANIFEST.in +1 -0
- types-atheris-2.3.0.20240831/PKG-INFO +42 -0
- types-atheris-2.3.0.20240831/atheris-stubs/METADATA.toml +6 -0
- types-atheris-2.3.0.20240831/atheris-stubs/__init__.pyi +9 -0
- types-atheris-2.3.0.20240831/atheris-stubs/function_hooks.pyi +14 -0
- types-atheris-2.3.0.20240831/atheris-stubs/import_hook.pyi +36 -0
- types-atheris-2.3.0.20240831/atheris-stubs/instrument_bytecode.pyi +7 -0
- types-atheris-2.3.0.20240831/atheris-stubs/py.typed +1 -0
- types-atheris-2.3.0.20240831/atheris-stubs/utils.pyi +18 -0
- types-atheris-2.3.0.20240831/atheris-stubs/version_dependent.pyi +27 -0
- types-atheris-2.3.0.20240831/setup.cfg +4 -0
- types-atheris-2.3.0.20240831/setup.py +56 -0
- types-atheris-2.3.0.20240831/types_atheris.egg-info/PKG-INFO +42 -0
- types-atheris-2.3.0.20240831/types_atheris.egg-info/SOURCES.txt +15 -0
- types-atheris-2.3.0.20240831/types_atheris.egg-info/dependency_links.txt +1 -0
- types-atheris-2.3.0.20240831/types_atheris.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include CHANGELOG.md
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: types-atheris
|
|
3
|
+
Version: 2.3.0.20240831
|
|
4
|
+
Summary: Typing stubs for atheris
|
|
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/atheris.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 atheris
|
|
18
|
+
|
|
19
|
+
This is a [PEP 561](https://peps.python.org/pep-0561/)
|
|
20
|
+
type stub package for the [`atheris`](https://github.com/google/atheris) 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
|
+
`atheris`.
|
|
27
|
+
|
|
28
|
+
This version of `types-atheris` aims to provide accurate annotations
|
|
29
|
+
for `atheris==2.3.*`.
|
|
30
|
+
The source for this package can be found at
|
|
31
|
+
https://github.com/python/typeshed/tree/main/stubs/atheris. All fixes for
|
|
32
|
+
types and metadata should be contributed there.
|
|
33
|
+
|
|
34
|
+
This stub package is marked as [partial](https://peps.python.org/pep-0561/#partial-stub-packages).
|
|
35
|
+
If you find that annotations are missing, feel free to contribute and help complete them.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
See https://github.com/python/typeshed/blob/main/README.md for more details.
|
|
39
|
+
This package was generated from typeshed commit
|
|
40
|
+
[`f87041e1184db224520f038a05399d8cc3963f65`](https://github.com/python/typeshed/commit/f87041e1184db224520f038a05399d8cc3963f65) and was tested
|
|
41
|
+
with mypy 1.11.1, pyright 1.1.378, and
|
|
42
|
+
pytype 2024.4.11.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from collections.abc import Callable
|
|
2
|
+
|
|
3
|
+
def Setup(
|
|
4
|
+
args: list[str],
|
|
5
|
+
test_one_input: Callable[[bytes], None],
|
|
6
|
+
**kwargs: bool | Callable[[bytes, int, int], str | bytes] | Callable[[bytes, bytes, int, int], str | bytes] | None,
|
|
7
|
+
) -> list[str]: ...
|
|
8
|
+
def Fuzz() -> None: ...
|
|
9
|
+
def Mutate(data: bytes, max_size: int) -> bytes: ...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
def hook_re_module() -> None: ...
|
|
4
|
+
|
|
5
|
+
class EnabledHooks:
|
|
6
|
+
def __init__(self) -> None: ...
|
|
7
|
+
def add(self, hook: str) -> None: ...
|
|
8
|
+
def __contains__(self, hook: str) -> bool: ...
|
|
9
|
+
|
|
10
|
+
enabled_hooks: EnabledHooks
|
|
11
|
+
|
|
12
|
+
# args[1] is an arbitrary string method that is called
|
|
13
|
+
# with the subsequent arguments, so they will vary
|
|
14
|
+
def _hook_str(*args: Any, **kwargs: Any) -> bool: ...
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import types
|
|
2
|
+
from collections.abc import Sequence
|
|
3
|
+
from importlib import abc, machinery
|
|
4
|
+
from typing_extensions import Self
|
|
5
|
+
|
|
6
|
+
def _should_skip(loader: abc.Loader) -> bool: ...
|
|
7
|
+
|
|
8
|
+
class AtherisMetaPathFinder(abc.MetaPathFinder):
|
|
9
|
+
def __init__(
|
|
10
|
+
self, include_packages: set[str], exclude_modules: set[str], enable_loader_override: bool, trace_dataflow: bool
|
|
11
|
+
) -> None: ...
|
|
12
|
+
def find_spec(
|
|
13
|
+
self, fullname: str, path: Sequence[str] | None, target: types.ModuleType | None = None
|
|
14
|
+
) -> machinery.ModuleSpec | None: ...
|
|
15
|
+
def invalidate_caches(self) -> None: ...
|
|
16
|
+
|
|
17
|
+
class AtherisSourceFileLoader:
|
|
18
|
+
def __init__(self, name: str, path: str, trace_dataflow: bool) -> None: ...
|
|
19
|
+
def get_code(self, fullname: str) -> types.CodeType | None: ...
|
|
20
|
+
|
|
21
|
+
class AtherisSourcelessFileLoader:
|
|
22
|
+
def __init__(self, name: str, path: str, trace_dataflow: bool) -> None: ...
|
|
23
|
+
def get_code(self, fullname: str) -> types.CodeType | None: ...
|
|
24
|
+
|
|
25
|
+
def make_dynamic_atheris_loader(loader: abc.Loader | type[abc.Loader], trace_dataflow: bool) -> abc.Loader: ...
|
|
26
|
+
|
|
27
|
+
class HookManager:
|
|
28
|
+
def __init__(
|
|
29
|
+
self, include_packages: set[str], exclude_modules: set[str], enable_loader_override: bool, trace_dataflow: bool
|
|
30
|
+
) -> None: ...
|
|
31
|
+
def __enter__(self) -> Self: ...
|
|
32
|
+
def __exit__(self, *args: object) -> None: ...
|
|
33
|
+
|
|
34
|
+
def instrument_imports(
|
|
35
|
+
include: Sequence[str] | None = None, exclude: Sequence[str] | None = None, enable_loader_override: bool = True
|
|
36
|
+
) -> HookManager: ...
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
partial
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from typing import Protocol, type_check_only
|
|
2
|
+
|
|
3
|
+
def path() -> str: ...
|
|
4
|
+
@type_check_only
|
|
5
|
+
class _Writer(Protocol):
|
|
6
|
+
def isatty(self) -> bool: ...
|
|
7
|
+
def write(self, content: str, /) -> object: ...
|
|
8
|
+
def flush(self) -> object: ...
|
|
9
|
+
|
|
10
|
+
class ProgressRenderer:
|
|
11
|
+
def __init__(self, stream: _Writer, total_count: int) -> None: ...
|
|
12
|
+
def render(self) -> None: ...
|
|
13
|
+
def erase(self) -> None: ...
|
|
14
|
+
def drop(self) -> None: ...
|
|
15
|
+
@property
|
|
16
|
+
def count(self) -> int: ...
|
|
17
|
+
@count.setter
|
|
18
|
+
def count(self, new_count: int) -> None: ...
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import types
|
|
2
|
+
from typing import Final
|
|
3
|
+
|
|
4
|
+
PYTHON_VERSION: Final[tuple[int, int]]
|
|
5
|
+
CONDITIONAL_JUMPS: Final[list[str]]
|
|
6
|
+
UNCONDITIONAL_JUMPS: Final[list[str]]
|
|
7
|
+
ENDS_FUNCTION: Final[list[str]]
|
|
8
|
+
HAVE_REL_REFERENCE: Final[list[str]]
|
|
9
|
+
HAVE_ABS_REFERENCE: Final[list[str]]
|
|
10
|
+
REL_REFERENCE_IS_INVERTED: Final[list[str]]
|
|
11
|
+
|
|
12
|
+
def rel_reference_scale(opname: str) -> int: ...
|
|
13
|
+
|
|
14
|
+
REVERSE_CMP_OP: Final[list[int]]
|
|
15
|
+
|
|
16
|
+
def jump_arg_bytes(arg: int) -> int: ...
|
|
17
|
+
def add_bytes_to_jump_arg(arg: int, size: int) -> int: ...
|
|
18
|
+
|
|
19
|
+
class ExceptionTableEntry:
|
|
20
|
+
def __init__(self, start_offset: int, end_offset: int, target: int, depth: int, lasti: bool) -> None: ...
|
|
21
|
+
def __eq__(self, other: object) -> bool: ...
|
|
22
|
+
|
|
23
|
+
class ExceptionTable:
|
|
24
|
+
def __init__(self, entries: list[ExceptionTableEntry]) -> None: ...
|
|
25
|
+
def __eq__(self, other: object) -> bool: ...
|
|
26
|
+
|
|
27
|
+
def generate_exceptiontable(original_code: types.CodeType, exception_table_entries: list[ExceptionTableEntry]) -> bytes: ...
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
from setuptools import setup
|
|
2
|
+
|
|
3
|
+
name = "types-atheris"
|
|
4
|
+
description = "Typing stubs for atheris"
|
|
5
|
+
long_description = '''
|
|
6
|
+
## Typing stubs for atheris
|
|
7
|
+
|
|
8
|
+
This is a [PEP 561](https://peps.python.org/pep-0561/)
|
|
9
|
+
type stub package for the [`atheris`](https://github.com/google/atheris) package.
|
|
10
|
+
It can be used by type-checking tools like
|
|
11
|
+
[mypy](https://github.com/python/mypy/),
|
|
12
|
+
[pyright](https://github.com/microsoft/pyright),
|
|
13
|
+
[pytype](https://github.com/google/pytype/),
|
|
14
|
+
PyCharm, etc. to check code that uses
|
|
15
|
+
`atheris`.
|
|
16
|
+
|
|
17
|
+
This version of `types-atheris` aims to provide accurate annotations
|
|
18
|
+
for `atheris==2.3.*`.
|
|
19
|
+
The source for this package can be found at
|
|
20
|
+
https://github.com/python/typeshed/tree/main/stubs/atheris. All fixes for
|
|
21
|
+
types and metadata should be contributed there.
|
|
22
|
+
|
|
23
|
+
This stub package is marked as [partial](https://peps.python.org/pep-0561/#partial-stub-packages).
|
|
24
|
+
If you find that annotations are missing, feel free to contribute and help complete them.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
See https://github.com/python/typeshed/blob/main/README.md for more details.
|
|
28
|
+
This package was generated from typeshed commit
|
|
29
|
+
[`f87041e1184db224520f038a05399d8cc3963f65`](https://github.com/python/typeshed/commit/f87041e1184db224520f038a05399d8cc3963f65) and was tested
|
|
30
|
+
with mypy 1.11.1, pyright 1.1.378, and
|
|
31
|
+
pytype 2024.4.11.
|
|
32
|
+
'''.lstrip()
|
|
33
|
+
|
|
34
|
+
setup(name=name,
|
|
35
|
+
version="2.3.0.20240831",
|
|
36
|
+
description=description,
|
|
37
|
+
long_description=long_description,
|
|
38
|
+
long_description_content_type="text/markdown",
|
|
39
|
+
url="https://github.com/python/typeshed",
|
|
40
|
+
project_urls={
|
|
41
|
+
"GitHub": "https://github.com/python/typeshed",
|
|
42
|
+
"Changes": "https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/atheris.md",
|
|
43
|
+
"Issue tracker": "https://github.com/python/typeshed/issues",
|
|
44
|
+
"Chat": "https://gitter.im/python/typing",
|
|
45
|
+
},
|
|
46
|
+
install_requires=[],
|
|
47
|
+
packages=['atheris-stubs'],
|
|
48
|
+
package_data={'atheris-stubs': ['__init__.pyi', 'function_hooks.pyi', 'import_hook.pyi', 'instrument_bytecode.pyi', 'utils.pyi', 'version_dependent.pyi', 'METADATA.toml', 'py.typed']},
|
|
49
|
+
license="Apache-2.0",
|
|
50
|
+
python_requires=">=3.8",
|
|
51
|
+
classifiers=[
|
|
52
|
+
"License :: OSI Approved :: Apache Software License",
|
|
53
|
+
"Programming Language :: Python :: 3",
|
|
54
|
+
"Typing :: Stubs Only",
|
|
55
|
+
]
|
|
56
|
+
)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: types-atheris
|
|
3
|
+
Version: 2.3.0.20240831
|
|
4
|
+
Summary: Typing stubs for atheris
|
|
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/atheris.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 atheris
|
|
18
|
+
|
|
19
|
+
This is a [PEP 561](https://peps.python.org/pep-0561/)
|
|
20
|
+
type stub package for the [`atheris`](https://github.com/google/atheris) 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
|
+
`atheris`.
|
|
27
|
+
|
|
28
|
+
This version of `types-atheris` aims to provide accurate annotations
|
|
29
|
+
for `atheris==2.3.*`.
|
|
30
|
+
The source for this package can be found at
|
|
31
|
+
https://github.com/python/typeshed/tree/main/stubs/atheris. All fixes for
|
|
32
|
+
types and metadata should be contributed there.
|
|
33
|
+
|
|
34
|
+
This stub package is marked as [partial](https://peps.python.org/pep-0561/#partial-stub-packages).
|
|
35
|
+
If you find that annotations are missing, feel free to contribute and help complete them.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
See https://github.com/python/typeshed/blob/main/README.md for more details.
|
|
39
|
+
This package was generated from typeshed commit
|
|
40
|
+
[`f87041e1184db224520f038a05399d8cc3963f65`](https://github.com/python/typeshed/commit/f87041e1184db224520f038a05399d8cc3963f65) and was tested
|
|
41
|
+
with mypy 1.11.1, pyright 1.1.378, and
|
|
42
|
+
pytype 2024.4.11.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
CHANGELOG.md
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
setup.py
|
|
4
|
+
atheris-stubs/METADATA.toml
|
|
5
|
+
atheris-stubs/__init__.pyi
|
|
6
|
+
atheris-stubs/function_hooks.pyi
|
|
7
|
+
atheris-stubs/import_hook.pyi
|
|
8
|
+
atheris-stubs/instrument_bytecode.pyi
|
|
9
|
+
atheris-stubs/py.typed
|
|
10
|
+
atheris-stubs/utils.pyi
|
|
11
|
+
atheris-stubs/version_dependent.pyi
|
|
12
|
+
types_atheris.egg-info/PKG-INFO
|
|
13
|
+
types_atheris.egg-info/SOURCES.txt
|
|
14
|
+
types_atheris.egg-info/dependency_links.txt
|
|
15
|
+
types_atheris.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
atheris-stubs
|