mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user