Skip to content

Fix a few typing and linter nits - #241

Merged
srittau merged 4 commits into
mainfrom
nits
Nov 4, 2026
Merged

srittau merged 4 commits into
mainfrom
nits

Conversation

@srittau

@srittau srittau commented Nov 4, 2026

Copy link
Copy Markdown
Member

No description provided.

subprocess.run(
[sys.executable, "-m", "build", "--no-isolation"],
cwd=tmpdir,
[sys.executable, "-m", "build", "--no-isolation"], cwd=tmpdir, check=False

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be check=True?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly, I just wanted to preserve current behavior in this PR. I'll explore this later and send a followup PR if it makes sense.

Comment thread stub_uploader/ts_data.py Outdated
capture_output=True,
text=True,
cwd=self.typeshed_path,
check=True,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also added check=True here which I don't think preserves existing behavior?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, fixed. I will revisit all checks later.

@JelleZijlstra JelleZijlstra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with landing this now and following up later.

@AlexWaygood

Copy link
Copy Markdown
Contributor

how were these surfaced, out of curiosity? Should we run the linter as part of pre-commit? (Definitely not a blocker for this to land, just curious!)

@srittau

srittau commented Nov 4, 2026 •

Copy link
Copy Markdown
Member Author

Ruff warnings (squiggly lines) while editing in VSCode. Yes, a linter would probably a good idea. I'm also fine with replacing black with ruff here (considering we don't need the control over stub formatting like we need in typeshed).

@srittau
srittau merged commit 74e1df7 into main Nov 4, 2026
6 checks passed
@srittau
srittau deleted the nits branch November 4, 2026 14:48
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.

3 participants