When generating python for a package like thoth-json-codec, the hypens rename in the package name, which triggers a syntax error:
from fable_modules.thoth-json-codec.codec import (Codec_map, Codec_array, Codec_1, CodecRequireQualifiedAccess_Codec_string, CodecRequireQualifiedAccess_Codec_int)
Expected and actual results
Package names containing hyphens could be escaped as periods are:
Thoth.Json.Core -> thoth_json_core
thoth-json-codec -> thoth_json_codec
Mapping these symbols to the same character of underscore would prevent having two dependencies that only differ in symbols, so maybe another valid character could be chosen if it is a concern.
Description
When generating python for a package like
thoth-json-codec
, the hypens rename in the package name, which triggers a syntax error:Expected and actual results
Package names containing hyphens could be escaped as periods are:
Thoth.Json.Core
->thoth_json_core
thoth-json-codec
->thoth_json_codec
Mapping these symbols to the same character of underscore would prevent having two dependencies that only differ in symbols, so maybe another valid character could be chosen if it is a concern.
Related information
4.19.3