Please copy all input params (including **kwargs) before they are used anywhere. By saving them off first-thing, we know we have an accurate copy of whatever was provided and can reference them in error messages. Any processing that occurs before the copy could potentially throw an exception that would kill the routine before the copy took place, or munge the input data silently so the copied values don't actually reflect what was passed in.
https://github.com/InformaticsGenomicMedicine/DraftCoreDataModel/blob/79450932a44ee677816f9c02e6f5660ea03e5ec1/src/core_variant.py#L27C7-L39
Please copy all input params (including **kwargs) before they are used anywhere. By saving them off first-thing, we know we have an accurate copy of whatever was provided and can reference them in error messages. Any processing that occurs before the copy could potentially throw an exception that would kill the routine before the copy took place, or munge the input data silently so the copied values don't actually reflect what was passed in.