Skip to content

Commit e8c35aa

Browse files
authored
Fix import of camelCased class (#3811)
1 parent 234e912 commit e8c35aa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Fable.Cli/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
### Fixed
1818

1919
* [Python] Fixes for custom hash values (#3796) (by @dbrattli)
20+
* [Python] Fix for import of camelCased class (#3808) (by @dbrattli)
2021
* [JS/TS] Fixed optional args for reflection (by @ncave)
2122
* [JS/TS] Fixed type visibility when parent is namespace (by @ncave)
2223
* [JS/TS] Fixed DateTimeOffset.ToString with custom format (by @ncave)

src/Fable.Transforms/Python/Fable2Python.fs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3680,11 +3680,8 @@ module Util =
36803680
)
36813681
|> Helpers.unzipArgs
36823682

3683-
// printfn "infterfaces: %A" interfaces
3684-
36853683
let bases = baseExpr |> Option.toList
3686-
3687-
let name = com.GetIdentifier(ctx, entName)
3684+
let name = com.GetIdentifier(ctx, Naming.toSnakeCase entName)
36883685

36893686
stmts
36903687
@ [

0 commit comments

Comments
 (0)