Skip to content

[Python] Type annotation fixes#4330

Merged
dbrattli merged 3 commits into
mainfrom
python-typing-fixes-16
Jan 8, 2026
Merged

[Python] Type annotation fixes#4330
dbrattli merged 3 commits into
mainfrom
python-typing-fixes-16

Conversation

@dbrattli

@dbrattli dbrattli commented Jan 7, 2026

Copy link
Copy Markdown
Collaborator
  • Fix BaseException assignments in except blocks
  • Fix type narrowing issues with arrow (lambda) functions
  • Fix interface method generation, property of callable vs method (match the interface being implemented)
  • Fix option annotation within invariant contaners (e.g arrays)

@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

Python Type Checking Results (Pyright)

✅ All non-excluded files pass

Metric Value
Excluded files 3
Files excluded from type checking

These files have known type errors and are excluded from CI. Remove from pyrightconfig.ci.json as errors are fixed.

temp/tests/Python/fable_modules/thoth_json_python/encode.py
temp/tests/Python/test_applicative.py
temp/tests/Python/test_misc.py

Comment thread src/Fable.Transforms/Python/Fable2Python.Util.fs Fixed
Comment thread src/Fable.Transforms/Python/Fable2Python.Util.fs Fixed
@dbrattli dbrattli merged commit 32350df into main Jan 8, 2026
23 checks passed
@dbrattli dbrattli deleted the python-typing-fixes-16 branch January 8, 2026 22:07
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