Skip to content

Replace optional Tools fields (using hasattr) with normal class fields. NFC - #1710

Merged
sbc100 merged 1 commit into
mainfrom
hasattr
Jun 1, 2026
Merged

sbc100 merged 1 commit into
mainfrom
hasattr

Conversation

@sbc100

@sbc100 sbc100 commented May 29, 2026 •

Copy link
Copy Markdown
Collaborator

Also remove version_filter completely. The last usage of this field was removed in #1165.

@sbc100 sbc100 changed the title Replace optional Tools fields (using hasattr) with normal class fie… Replace optional Tools fields (using hasattr) with normal class fields. NFC May 29, 2026
@sbc100
sbc100 force-pushed the hasattr branch 2 times, most recently from f1ec30f to 54eb94d Compare June 1, 2026 19:51
@sbc100
sbc100 requested review from dschuff and juj June 1, 2026 19:52
Comment thread emsdk.py Resolved
…lds.

Also remove `version_filter` completely.  The last usage of this
field was removed in #1165.
@sbc100
sbc100 enabled auto-merge (squash) June 1, 2026 22:45
@sbc100
sbc100 merged commit 261e2b5 into main Jun 1, 2026
9 checks passed
@sbc100
sbc100 deleted the hasattr branch June 1, 2026 22:47
sbc100 added a commit that referenced this pull request Dec 2, 2026
- Bump `ruff` to `0.17.6` in `requirements-dev.txt`.
- Enable `FURB`, `RET`, and `SIM` in `pyproject.toml` (ignoring
`uncapitalized-environment-variables`,
`if-else-block-instead-of-if-exp`, `read-whole-file`,
`write-whole-file`, and `superfluous-else-return`), and fix existing
violations across `emsdk.py`, `test/test.py`, `scripts/`, and `bazel/`.
- Annotate `exit_with_error` as `NoReturn` so `implicit-return`
recognizes it does not return, and remove `cmp_version` and
`passes_filters` (unused since #1710) from `emsdk.py`.
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.

2 participants