mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-04 22:31:26 +08:00
Use _typeshed.FileDescriptorOrPath in stubs (#9695)
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
from _typeshed import StrOrBytesPath
|
||||
from _typeshed import FileDescriptorOrPath
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
_OpenFile: TypeAlias = StrOrBytesPath | int
|
||||
|
||||
def main(template: _OpenFile, data: _OpenFile | None = ..., **kwargs: Any) -> str: ...
|
||||
def main(template: FileDescriptorOrPath, data: FileDescriptorOrPath | None = ..., **kwargs: Any) -> str: ...
|
||||
def cli_main() -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user