Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Callable, Dict, Iterable, Iterator, Text, Tuple, TypeVar
from typing import Any, Callable, Dict, Iterable, Iterator, Text, TypeVar
from typing_extensions import TypedDict
_T = TypeVar("_T")
@@ -52,7 +52,7 @@ __last_modification__: str
class PortScanner(object):
def __init__(self, nmap_search_path: Iterable[str] = ...) -> None: ...
def get_nmap_last_output(self) -> Text: ...
def nmap_version(self) -> Tuple[int, int]: ...
def nmap_version(self) -> tuple[int, int]: ...
def listscan(self, hosts: str = ...) -> list[str]: ...
def scan(
self, hosts: Text = ..., ports: Text | None = ..., arguments: Text = ..., sudo: bool = ..., timeout: int = ...
@@ -96,7 +96,7 @@ class PortScannerYield(PortScannerAsync):
def __init__(self) -> None: ...
def scan( # type: ignore
self, hosts: str = ..., ports: str | None = ..., arguments: str = ..., sudo: bool = ..., timeout: int = ...
) -> Iterator[Tuple[str, _Result]]: ...
) -> Iterator[tuple[str, _Result]]: ...
def stop(self) -> None: ...
def wait(self, timeout: int | None = ...) -> None: ...
def still_scanning(self) -> None: ... # type: ignore