Skip to content

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 <[email protected]>
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 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@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