user24471097
user24471097

Reputation: 1

Is there a way to constrain polyfactory generated types

i dont want to see any datetime fields in my dict

class S(TypedDict):
d: dict

print(TypedDictFactory.create_factory(model=S).build())

to annotate dict like dict[str,int] is not an option for me. in reality i have a very nested structure

Upvotes: 0

Views: 277

Answers (0)

Related Questions