mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-11 20:51:42 +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