It's not `string`, but `Filesystem`. The type hint should be added to the methods signature, too.