Showing posts with the label
python-dataclasses
Issue I'm having trouble getting MyPy to pass my script which contains a dataclass Bar with a…
Issue Let us say I have a custom use case, and I need to dynamically create or define the __init__ …
Issue How do you build custom data types in Python (similar to how you define interface in TypeScr…
Issue If I define a type like the following: StringType = TypeVar('StringType', str, None)…
Issue I have a class that accepts a lot of params, and in init method I'm loading them in diffe…
Issue Python 3.7 was released a while ago, and I wanted to test some of the fancy new dataclass +ty…
Issue When using dataclasses.dataclass the type information informs how parameters are parsed. I w…
Issue I have the following simple code. @dataclass(frozen=True) class Test: a: bool = True …
Issue I want to assign a value of None to a field that fails to validate in Pydantic. The validator…
Issue I want to create a Pydantic model in which there is a list field, which left uninitialized ha…
Issue Since 3.0 there is support to make an argument keyword only: class S3Obj: def __init__…
Issue I'm currently trying my hands on the new dataclass constructions introduced in Python 3.7…
Issue With PEP 557 data classes are introduced into python standard library. They make use of th…
Issue I have a parent dataclass and a sub-dataclass inherits the first class. I've redefined __…