mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Update vendored windows libs
This commit is contained in:
parent
f61c211655
commit
b1cefa94e5
226 changed files with 33472 additions and 11882 deletions
28
libs/win/path/matchers.pyi
Normal file
28
libs/win/path/matchers.pyi
Normal file
|
@ -0,0 +1,28 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Callable, overload
|
||||
|
||||
from typing_extensions import Literal
|
||||
|
||||
from path import Path
|
||||
|
||||
@overload
|
||||
def load(param: None) -> Null: ...
|
||||
@overload
|
||||
def load(param: str) -> Pattern: ...
|
||||
@overload
|
||||
def load(param: Any) -> Any: ...
|
||||
|
||||
class Base:
|
||||
pass
|
||||
|
||||
class Null(Base):
|
||||
def __call__(self, path: str) -> Literal[True]: ...
|
||||
|
||||
class Pattern(Base):
|
||||
def __init__(self, pattern: str) -> None: ...
|
||||
def get_pattern(self, normcase: Callable[[str], str]) -> str: ...
|
||||
def __call__(self, path: Path) -> bool: ...
|
||||
|
||||
class CaseInsensitive(Pattern):
|
||||
normcase: Callable[[str], str]
|
Loading…
Add table
Add a link
Reference in a new issue