mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from typing import Optional, TextIO
|
||||
from typing import TextIO
|
||||
|
||||
def getpass(prompt: str = ..., stream: Optional[TextIO] = ...) -> str: ...
|
||||
def getpass(prompt: str = ..., stream: TextIO | None = ...) -> str: ...
|
||||
def getuser() -> str: ...
|
||||
|
||||
class GetPassWarning(UserWarning): ...
|
||||
|
||||
Reference in New Issue
Block a user