from typing import Optional, Text

def whichdb(filename: Text) -> Optional[str]: ...
