Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@dbrattli
Copy link
Collaborator

Summary

  • Add Fable.Python.Fable.Types module with utilities for detecting Fable types at runtime in Python
  • typeName: get Python type name of an object
  • isIntegralType: check for Int8-64, UInt8-64
  • isNumericType: check for integral types + Float32/64
  • isArrayType: check for FSharpArray, GenericArray, typed arrays
  • Code formatting improvements across multiple files
  • Test coverage for the new Types module (24 tests)

Test plan

  • All 224 tests pass (just test-python)
  • New type detection tests verify correct behavior for various F# types

Release-As: 5.0.0-alpha.21.3

🤖 Generated with Claude Code

dbrattli and others added 4 commits December 18, 2025 23:24
Add support for serializing F# typed arrays (Int32Array, Int64Array, etc.)
to JSON by converting them to Python lists.

Supported array types:
- Generic arrays: FSharpArray, GenericArray
- Typed arrays: Int8Array, Int16Array, Int32Array, Int64Array,
  UInt8Array, UInt16Array, UInt32Array, UInt64Array,
  Float32Array, Float64Array

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add utilities for detecting Fable types at runtime in Python:
- typeName: get Python type name of an object
- isIntegralType: check for Int8-64, UInt8-64
- isNumericType: check for integral types + Float32/64
- isArrayType: check for FSharpArray, GenericArray, typed arrays

Also includes code formatting improvements and test coverage.

Release-As: 5.0.0-alpha.21.3

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dbrattli dbrattli merged commit 6e1e902 into main Dec 19, 2025
2 checks passed
@dbrattli dbrattli deleted the feat/json-array-support branch December 19, 2025 00:00
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.