Skip to content

Instantly share code, notes, and snippets.

@mg3146
mg3146 / gist:66e52060cbd58ee05312f75b7eb2986c
Last active August 15, 2023 10:51
pydantic arg example
class OriginalClass:
start : str
end : str
def __init__(self, gen_string = None, start = None, end = None):
if gen_string:
start = gen_string[0:2]
end = gen_string[2:4]