mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from typing import Any, Dict, Optional, Union
|
||||
from typing import Any, Dict, Union
|
||||
|
||||
_Text = Union[str, unicode]
|
||||
|
||||
class Completer:
|
||||
def __init__(self, namespace: Optional[Dict[str, Any]] = ...) -> None: ...
|
||||
def complete(self, text: _Text, state: int) -> Optional[str]: ...
|
||||
def __init__(self, namespace: Dict[str, Any] | None = ...) -> None: ...
|
||||
def complete(self, text: _Text, state: int) -> str | None: ...
|
||||
|
||||
Reference in New Issue
Block a user