Format: application/octet-stream
⬇ Download File (806 B)
   1  import sys
   2  from typing import AnyStr, Sequence, Text, Union
   3  
   4  if sys.version_info >= (3, 0):
   5      def commonprefix(m: Sequence[str]) -> str: ...
   6  
   7  else:
   8      def commonprefix(m: Sequence[AnyStr]) -> AnyStr: ...
   9  
  10  if sys.version_info >= (3, 6):
  11      from builtins import _PathLike
  12      def exists(path: Union[AnyStr, _PathLike[AnyStr]]) -> bool: ...
  13  
  14  else:
  15      def exists(path: Text) -> bool: ...
  16  
  17  def isfile(path: Text) -> bool: ...
  18  def isdir(s: Text) -> bool: ...
  19  def getsize(filename: Text) -> int: ...
  20  def getmtime(filename: Text) -> float: ...
  21  def getatime(filename: Text) -> float: ...
  22  def getctime(filename: Text) -> float: ...
  23  
  24  if sys.version_info >= (3, 4):
  25      def samestat(s1: str, s2: str) -> int: ...
  26      def samefile(f1: str, f2: str) -> int: ...
  27      def sameopenfile(fp1: str, fp2: str) -> int: ...
  28