mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
* Replace all uses of StrPath, BytesPath, and AnyPath in Python 2 stubs. * Add StrOrBytesPath as preferred alias for AnyPath. * Replace all remaining AnyPath instances with StrOrBytesPath. * Mark AnyPath as obsolete. Part of #5470
16 lines
592 B
Python
16 lines
592 B
Python
from typing import Any, Optional, Pattern, Text
|
|
|
|
# rx can be any object with a 'search' method; once we have Protocols we can change the type
|
|
def compile_dir(
|
|
dir: Text,
|
|
maxlevels: int = ...,
|
|
ddir: Optional[Text] = ...,
|
|
force: bool = ...,
|
|
rx: Optional[Pattern[Any]] = ...,
|
|
quiet: int = ...,
|
|
) -> int: ...
|
|
def compile_file(
|
|
fullname: Text, ddir: Optional[Text] = ..., force: bool = ..., rx: Optional[Pattern[Any]] = ..., quiet: int = ...
|
|
) -> int: ...
|
|
def compile_path(skip_curdir: bool = ..., maxlevels: int = ..., force: bool = ..., quiet: int = ...) -> int: ...
|