Python 3.12
Ooh, seems there is a new syntax for declaring the types of kwargs [1]:<p><pre><code>  from typing import TypedDict, Unpack
  
  class Movie(TypedDict):
    name: str
    year: int

  def foo(*kwargs: Unpack[Movie]): ...
</code></pre>
Maybe now I'll be able to actually figure out what data to send libraries without actually reading their source code.<p>1. <a href="https://docs.python.org/3.12/whatsnew/3.12.html#pep-692-using-typeddict-for-more-precise-kwargs-typing" rel="nofollow noreferrer">https://docs.python.org/3.12/whatsnew/3.12.html#pep-692-usin...</a>