Skip to content

Conversation

@pmhahn
Copy link

@pmhahn pmhahn commented Dec 8, 2025

This is the next part from my original #196 containing 4 small fixes from running ruff and mypy.

Philipp Hahn added 4 commits December 8, 2025 12:08
E721 Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks

Signed-off-by: Philipp Hahn <[email protected]>
> shtab/__main__.py:8: error: "main" does not return a value (it only ever returns None)

Signed-off-by: Philipp Hahn <[email protected]>
ArgumentParser._get_optional_actions() will always return instances of
`Action` and never `SUPPRESS`, which is a `str`.

Signed-off-by: Philipp Hahn <[email protected]>
Also handle input redirection.
Also handle other file descriptors than STDOUT and STDERR.

Signed-off-by: Philipp Hahn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant