mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 15:25:49 +08:00
Use _typeshed.FileDescriptorOrPath in stubs (#9695)
This commit is contained in:
1 parent
6d535bf0a3
commit
372073d35b
13 files changed
+39
-53
No files matched your search
@@ -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