diff --git a/stubs/python-nmap/@tests/stubtest_allowlist.txt b/stubs/python-nmap/@tests/stubtest_allowlist.txt new file mode 100644 index 000000000..7e144572d --- /dev/null +++ b/stubs/python-nmap/@tests/stubtest_allowlist.txt @@ -0,0 +1 @@ +nmap.test_nmap diff --git a/stubs/python-nmap/METADATA.toml b/stubs/python-nmap/METADATA.toml index 7431acfe0..161ee7abb 100644 --- a/stubs/python-nmap/METADATA.toml +++ b/stubs/python-nmap/METADATA.toml @@ -1 +1,4 @@ version = "0.7.*" + +[tool.stubtest] +ignore_missing_stub = false diff --git a/stubs/python-nmap/nmap/__init__.pyi b/stubs/python-nmap/nmap/__init__.pyi index d495f0489..d2e6aef65 100644 --- a/stubs/python-nmap/nmap/__init__.pyi +++ b/stubs/python-nmap/nmap/__init__.pyi @@ -1 +1,2 @@ from .nmap import * +from .nmap import __author__ as __author__, __last_modification__ as __last_modification__, __version__ as __version__ diff --git a/stubs/python-nmap/nmap/nmap.pyi b/stubs/python-nmap/nmap/nmap.pyi index 4b7aa0591..ae8e48ba9 100644 --- a/stubs/python-nmap/nmap/nmap.pyi +++ b/stubs/python-nmap/nmap/nmap.pyi @@ -49,6 +49,8 @@ class _ResultHostPort(TypedDict): version: str __last_modification__: str +__author__: str +__version__: str class PortScanner: def __init__(self, nmap_search_path: Iterable[str] = ...) -> None: ...