Remove compatibility aliases (#5464)

* Remove compatibility aliases

Remove a few instances of Text

Use aliases from _typeshed

* Remove unused imports
This commit is contained in:
Sebastian Rittau authored and GitHub committed 2021-05-15 20:49:20 +03:00
1 parent 056981b957
commit 841a365284
26 files changed
+483 -585

No files matched your search

+1 -3
View File
@@ -1,7 +1,5 @@
from typing import Any, Dict, Optional
_Text = str
class Completer:
def __init__(self, namespace: Optional[Dict[str, Any]] = ...) -> None: ...
def complete(self, text: _Text, state: int) -> Optional[str]: ...
def complete(self, text: str, state: int) -> Optional[str]: ...