fix type hinting in FileManager