diff --git a/src/Fable.Cli/CHANGELOG.md b/src/Fable.Cli/CHANGELOG.md index 4c7dd6cd6..a938df014 100644 --- a/src/Fable.Cli/CHANGELOG.md +++ b/src/Fable.Cli/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +* [Python] Fix `__hash__` to return native `int` instead of `int32` for Python 3.14 compatibility (by @dbrattli) * [Python] Fix PyPI publish workflow version pattern to support `rc` tags (by @dbrattli) * [Beam] Bundle `fable-library-beam` in NuGet package so `dotnet fable --lang beam` works (by @dbrattli) * [Beam] Fix optional arguments by unwrapping at call sites and padding missing trailing args (by @dbrattli) diff --git a/src/Fable.Compiler/CHANGELOG.md b/src/Fable.Compiler/CHANGELOG.md index f67a1c0dd..1e4b5ea56 100644 --- a/src/Fable.Compiler/CHANGELOG.md +++ b/src/Fable.Compiler/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +* [Python] Fix `__hash__` to return native `int` instead of `int32` for Python 3.14 compatibility (by @dbrattli) * [Beam] Fix optional arguments by unwrapping at call sites and padding missing trailing args (by @dbrattli) * [Beam] Fix generic constraint interface dispatch (by @dbrattli) * [Beam] Fix class constructor field invokes and explicit val fields (by @dbrattli) diff --git a/src/fable-library-py/fable_library/reflection.py b/src/fable-library-py/fable_library/reflection.py index 73317a5d4..8366b2942 100644 --- a/src/fable-library-py/fable_library/reflection.py +++ b/src/fable-library-py/fable_library/reflection.py @@ -57,7 +57,7 @@ def __eq__(self, other: Any) -> bool: def __hash__(self) -> int: hashes: list[int32] = [int32(hash(x)) for x in self.generics or []] hashes.append(int32(hash(self.fullname))) - return combine_hash_codes(hashes) + return int(combine_hash_codes(hashes)) def class_type(