Use _typeshed.FileDescriptorOrPath in stubs (#9695)

This commit is contained in:
Avasam
2023-02-09 02:30:19 -05:00
committed by GitHub
parent 6d535bf0a3
commit 372073d35b
13 changed files with 39 additions and 53 deletions

View File

@@ -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: ...