Skip to content

Conversation

@dbrattli
Copy link
Collaborator

@dbrattli dbrattli commented Jan 6, 2026

  • Fix string literal inlining for Python to prevent Pyright errors when accessing attributes on Literal types
  • Add widen() helper to convert erased Option callbacks (T | None) to wrapped Option form (Option[T]) for type checker compatibility
  • Improve interface/protocol generation with proper vararg handling and positional-only parameters
  • Fix Dictionary Keys/Values to return proper IEnumerable wrappers
  • Update type annotations to use Mapping instead of MutableMapping for IDictionary
  • Support [<Global>] attribute in type annotations

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Python Type Checking Results (Pyright)

✅ All non-excluded files pass

Metric Value
Excluded files 5
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/fable-library-py/fable_library/list.py
temp/tests/Python/fable_modules/thoth_json_python/encode.py
temp/tests/Python/test_applicative.py
temp/tests/Python/test_misc.py
temp/tests/Python/test_type.py

@dbrattli dbrattli merged commit 132a224 into main Jan 7, 2026
23 checks passed
@dbrattli dbrattli deleted the python-typing-fixes-15 branch January 7, 2026 17:39
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