Skip to content

[NFC] wasmstdlib.py: fix Python typing error #83125

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

Merged
merged 1 commit into from
Jul 17, 2025

Conversation

MaxDesiatov
Copy link
Contributor

Fix type error in should_test_executable:

reportIncompatibleMethodOverride: Method "should_test_executable" overrides class "WasmStdlib" in an incompatible manner
Return type mismatch: base method returns type "Literal[True]", override returns type "Literal[False]"
"Literal[False]" is not assignable to type "Literal[True]"

Fix type error in `should_test_executable`:
```
reportIncompatibleMethodOverride: Method "should_test_executable" overrides class "WasmStdlib" in an incompatible manner
Return type mismatch: base method returns type "Literal[True]", override returns type "Literal[False]"
"Literal[False]" is not assignable to type "Literal[True]"
```
@MaxDesiatov MaxDesiatov requested a review from etcwilde as a code owner July 17, 2025 11:48
@MaxDesiatov MaxDesiatov added the build-script Area → utils: The build script label Jul 17, 2025
@MaxDesiatov MaxDesiatov added python Flag: Python source code nfc Flag: No Functional Change labels Jul 17, 2025
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) July 17, 2025 11:48
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test macos

1 similar comment
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test macos

@MaxDesiatov MaxDesiatov merged commit b6c7917 into swiftlang:main Jul 17, 2025
3 checks passed
@MaxDesiatov MaxDesiatov deleted the fix-python-typing branch July 17, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-script Area → utils: The build script nfc Flag: No Functional Change python Flag: Python source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant