Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

5 small fixes#211

Open
pmhahn wants to merge 5 commits into
tqdm:maintqdm/shtab:mainfrom
pmhahn:fixespmhahn/shtab:fixesCopy head branch name to clipboard
Open

5 small fixes#211
pmhahn wants to merge 5 commits into
tqdm:maintqdm/shtab:mainfrom
pmhahn:fixespmhahn/shtab:fixesCopy head branch name to clipboard

Conversation

@pmhahn

@pmhahn pmhahn commented Dec 8, 2025

Copy link
Copy Markdown

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

Philipp Hahn added 5 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 <p.hahn@avm.de>
> shtab/__main__.py:8: error: "main" does not return a value (it only ever returns None)

Signed-off-by: Philipp Hahn <p.hahn@avm.de>
ArgumentParser._get_optional_actions() will always return instances of
`Action` and never `SUPPRESS`, which is a `str`.

Signed-off-by: Philipp Hahn <p.hahn@avm.de>
Also handle input redirection.
Also handle other file descriptors than STDOUT and STDERR.

Signed-off-by: Philipp Hahn <p.hahn@avm.de>
Signed-off-by: Philipp Hahn <p.hahn@avm.de>
@pmhahn pmhahn changed the title 4 small fixes 5 small fixes Jun 3, 2026
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.