فهرست منبع

Disable strict typing on config

Since configparse configs operate on string types, we need to
allow loose type coercion.
nosoop 10 ماه پیش
والد
کامیت
9158499b2c
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/smgdc/validate.py

+ 1 - 0
src/smgdc/validate.py

@@ -286,5 +286,6 @@ def read_config(config: configparser.ConfigParser) -> GameConfDict:
     return msgspec.convert(
         {s: config[s] for s in config.sections()},
         type=GameConfDict,
+        strict=False,
         dec_hook=convert_types(ByteSignature, Code, IntLiteral, struct.Struct, pathlib.Path),
     )