mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 05:54:02 +08:00
9 lines
333 B
Python
9 lines
333 B
Python
from typing import Protocol, runtime_checkable
|
|
|
|
@runtime_checkable
|
|
class PathInfo(Protocol):
|
|
def exists(self, *, follow_symlinks: bool = True) -> bool: ...
|
|
def is_dir(self, *, follow_symlinks: bool = True) -> bool: ...
|
|
def is_file(self, *, follow_symlinks: bool = True) -> bool: ...
|
|
def is_symlink(self) -> bool: ...
|