Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default for SFTPClient.listdir #673

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Add default for SFTPClient.listdir #673

merged 1 commit into from
Jul 17, 2024

Commits on Jul 17, 2024

  1. Add default for SFTPClient.listdir

    At runtime, it's possible to call `listdir()` (i.e. without arguments)
    and get a `Sequence[str]` back, due to the default argument in the
    implementation. However, there is no `@overload` that contains 0
    arguments, so mypy doesn't think that it's possible.
    
    This adds the presence of the default to the sequence-of-strings
    returning overload, to match the implementation
    tjstum committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    b07a48d View commit details
    Browse the repository at this point in the history