torchchat icon indicating copy to clipboard operation
torchchat copied to clipboard

Dataclass Type Enforcement

Open vmpuri opened this issue 6 months ago • 0 comments

🚀 The feature, motivation and pitch

Select a method for enforcing types in Python dataclasses (i.e. pydantic)

Alternatives

Don't enforce types - may cause type errors when decoding JSON requests.

Additional context

Original discussion in comments on https://github.com/pytorch/torchchat/pull/1021

RFC (Optional)

No response

vmpuri avatar Aug 12 '24 18:08 vmpuri