You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type converter function signature should be changed to:
deftype_converter(text, match=None, match_start=0):
# -- NEW: match_start : int = 0, # refers to the first group in the match object for a field where the converter is used.pass
This change would allow to provide a generic Parser without type knowledge.
In addition, user-defined types should also provide this signature. Currently, only the first parameter is supported there which prevents to use complexes type converter cases.
Due to backward compatibility reasons, the old user-defined signature should be supported, too, at least for some time.
The text was updated successfully, but these errors were encountered:
The type converter function signature should be changed to:
This change would allow to provide a generic Parser without type knowledge.
In addition, user-defined types should also provide this signature. Currently, only the first parameter is supported there which prevents to use complexes type converter cases.
Due to backward compatibility reasons, the old user-defined signature should be supported, too, at least for some time.
The text was updated successfully, but these errors were encountered: