Skip to content

[Python] Code refactor and curry fix#4329

Merged
dbrattli merged 2 commits into
mainfrom
python-refactor
Jan 7, 2026
Merged

[Python] Code refactor and curry fix#4329
dbrattli merged 2 commits into
mainfrom
python-refactor

Conversation

@dbrattli

@dbrattli dbrattli commented Jan 7, 2026

Copy link
Copy Markdown
Collaborator
  • Fix curry/uncurry to handle arbitrary number of arguments
  • Split types.py into record.py, union.py
  • Added curry.py
  • Added back Unit type to type-annotations to better support "strict" type checking mode. We still use "standard" mode for Pyright.

@github-actions

github-actions Bot commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

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

Comment thread src/Fable.Transforms/Replacements.Util.fs Fixed
Comment thread src/Fable.Transforms/Replacements.Util.fs Fixed
@dbrattli dbrattli merged commit 0272f7d into main Jan 7, 2026
23 checks passed
@dbrattli dbrattli deleted the python-refactor branch January 7, 2026 22:25
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