<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/tags/pydantic/best-of/2024/10" -->

---
title: Best Pydantic posts — October 2024 | daily.dev
description: The most upvoted Pydantic posts from October 2024, curated by the daily.dev community.
canonical: https://daily.dev/tags/pydantic/best-of/2024/10
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/tags/pydantic/best-of/2024/10
og:type: website
og:site_name: daily.dev
og:title: Best Pydantic posts — October 2024 | daily.dev
og:description: The most upvoted Pydantic posts from October 2024, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Pydantic — October 2024

1. 1  
[](/posts/typeddicts-are-better-than-you-think-ifqal1vfj "TypedDicts are better than you think")  
[![hn's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn)](/tags/[tag]/best-of/[year]/[month])  
6m read time • Oct 11, 2024  
### TypedDicts are better than you think  
TypedDict, introduced in PEP-589 for Python 3.8, is a tool for adding type annotations to dictionaries. It addresses limitations of dataclasses, particularly in scenarios like HTTP PATCH operations and handling optional fields. Enhancements like non-totality and individual field requirements improve its flexibility. PEP-692 expanded its application to type keyword arguments, proving useful in functions with numerous optional parameters. TypedDict also aids in dependency injection by defining shared dependencies in one place. Future PEPs aim to introduce features like extra item types and readonly items for even more control.

+3  
16  
1

[See all Pydantic archives](/tags/pydantic/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/tags/pydantic/best-of/2024/10#page","url":"https://daily.dev/tags/pydantic/best-of/2024/10","name":"Best Pydantic Posts — October 2024","description":"The most upvoted Pydantic posts from October 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/tags/pydantic/best-of/2024/10#items","numberOfItems":1,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/typeddicts-are-better-than-you-think-ifqal1vfj","name":"TypedDicts are better than you think"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Tags","item":"https://daily.dev/tags"},{"@type":"ListItem","position":3,"name":"Pydantic","item":"https://daily.dev/tags/pydantic"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/tags/pydantic/best-of"},{"@type":"ListItem","position":5,"name":"October 2024"}]}]}
```

